code: public static boolean isBetween(double value, double min, double max)
      {
          return Double.compare(value, min) >= 0 && Double.compare(value, max) <= 0;
      }
docs: Check if value is between an interval.
  
  @param value The value to check.
  @param min The minimum value.
  @param max The maximum value.
  @return <code>true</code> if between, <code>false</code> else.