Java Number Range Check inRange(double value, double min, double max)

Here you can find the source of inRange(double value, double min, double max)

Description

in Range

License

Open Source License

Declaration

public static boolean inRange(double value, double min, double max) 

Method Source Code

//package com.java2s;

public class Main {
    public static boolean inRange(double value, double min, double max) {
        return (value >= min && value <= max);
    }/* w  ww.  j a  va 2 s .  c  om*/

    /**
     * checks if a value is in the range min..max, min+max are included
     *
     * @param value
     * @param min
     * @param max
     * @return
     */
    public static boolean inRange(int value, int min, int max) {
        return (value >= min && value <= max);
    }
}

Related

  1. inRange(double lat, double lon)
  2. inRange(double query, double min, double max)
  3. inRange(double value, double lower, double upper)
  4. inRange(double value, double min, double max)
  5. inRange(double value, double target, double range)
  6. inRange(double x, double y, double z, double sx, double sy, double sz, double r)
  7. inRange(E element, E min, E max)