Float.Float
Class Overview | Class Members |
This Package |
All Packages
public Float( float value )
Parameters
- value
- the value to be represented by the Float.
Description
Constructs a newly allocated Float object that
represents the primitive float argument.
public Float( double value )
Parameters
- value
- the value to be represented by the Float.
Description
Constructs a newly allocated Floatobject that
represents the argument converted to type float.
public Float( String s ) throws NumberFormatException
Parameters
- s
- a string to be converted to a Float.
Description
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.
Exceptions
NumberFormatException
if the string does not contain a
parsable number.
See Also
valueOf