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

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

Description

in Range

License

Apache License

Declaration

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

Method Source Code

//package com.java2s;
/**/*from w ww. j  a v a2  s. c  o  m*/
 * Part of campskeleton: http://code.google.com/p/campskeleton/
 * 
 * Original Copyright Notice: http://www.apache.org/licenses/LICENSE-2.0
 * 
 * 
 * @author twak
 */

public class Main {
    public static boolean inRange(double query, double min, double max) {
        return query >= min && query <= max;
    }
}

Related

  1. inRange(double lat, double lon)
  2. inRange(double value, double lower, double upper)
  3. inRange(double value, double min, double max)
  4. inRange(double value, double min, double max)
  5. inRange(double value, double target, double range)