Constructor Summary |
Double(double value) Create an immutable object with a specific double value. |
Method Summary |
|
static long |
doubleToLongBits(double value) Returns the IEEE 754 floating-point "double format" bit layout representation of the value. |
double |
doubleValue() Return the double value |
bool | equals(Object obj) |
float |
floatValue() Cast the double value to float |
int | hashCode() |
int |
intValue() Cast the double value to int |
bool |
isNaN() Checks if value is NaN (Not a Number) |
static double |
longBitsToDouble(long bits) Returns a double value from a IEEE 754 floating-point "double format" bit layout representation. |
static double |
parseDouble(String s) Returns a double value parsed from a string. Will throw an exception if the string does not contain a parseable number. |
String | toString() |
Constructor Detail |
public Double(double value)
Create an immutable object with a specific double value.
Method Detail |
public static long doubleToLongBits(double value)
Returns the IEEE 754 floating-point "double format" bit layout representation of the value.
public double doubleValue()
Return the double value
public bool equals(Object obj)
public float floatValue()
Cast the double value to float
public int hashCode()
public int intValue()
Cast the double value to int
public bool isNaN()
Checks if value is NaN (Not a Number)
public static double longBitsToDouble(long bits)
Returns a double value from a IEEE 754 floating-point "double format" bit layout representation.
public static double parseDouble(String s)
Returns a double value parsed from a string. Will throw an exception if the string does not contain a parseable number.
public String toString()