public Float (String s) throws NumberFormatException

Constructs a newly allocated Float object that represents the floating-point value of type float represented by the string. The string is converted to a float value as if by the valueOf method.

Parameters:
s    a string to be converted to a Float.

Exceptions:
NumberFormatException    if the string does not contain a parsable number.

See also:
java.lang.Float.valueOf(java.lang.String)