Float safeFloat(String x, Float min, Float max)
Arguments
x: The string to convertmin: The minimum valuemax: The maximum value
Usage
Convert a string to a Float, throwing an Exception if the resulting Float is out of the specified range (note that due to floating-point inaccuracies, values very close to the minimum or maximum value may be incorrectly rejected or accepted).