Double.Double

Double.Double

Class Overview | Class Members | This Package | All Packages

Syntax 1
public Double( double value )
Parameters
value
the value to be represented by the Double.
Description
Constructs a newly allocated Double object that represents the primitive double argument.



Syntax 2
public Double( String s ) throws NumberFormatException
Parameters
s
a string to be converted to a Double.
Description
Constructs a newly allocated Double object that represents the floating- point value of type double represented by the string. The string is converted to a double value as if by the valueOf method.

Exceptions
NumberFormatException if the string does not contain a parsable number.
See Also
valueOf