code: protected double readDouble(final String doubleString, final double min, final double max) {
          return Math.max(Math.min(Double.parseDouble(doubleString), max), min);
      }
docs: Read a double string value.
  
  @param doubleString the double value
  @param min the minimum value allowed
  @param max the maximum value allowed
  
  @return the value parsed according to its range