public static boolean isBetween ( double value , double min , double max ) { return Double . compare ( value , min ) >= 0 && Double . compare ( value , max ) <= 0 ; }
Check if value is between an interval .