Float.Float

Float.Float

Class Overview | Class Members | This Package | All Packages

Syntax 1
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.



Syntax 2
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.



Syntax 3
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