Here you can find the source of range(float number, float value, float range)
public static boolean range(float number, float value, float range)
//package com.java2s; //License from project: Open Source License public class Main { public static boolean range(float number, float value, float range) { return number > value - range && number < value + range; }//from w w w . ja va2 s . c o m }