Field Summary |
|
final public static double | MAX_VALUE
Constant for the maximum double value, (2 - 2-52/sup>) *
21023. |
final public static double | MIN_VALUE
Constant for the minimum double value, 2-1074. |
final public static double | NEGATIVE_INFINITY
Constant for the Negative Infinity value of the double
type. |
final public static double | NaN
Constant for the Not-a-Number (NaN) value of the double
type. |
final public static double | POSITIVE_INFINITY
Constant for the Positive Infinity value of the double
type. |
final public static int | SIZE
Constant for the number of bits to represent a double in
two's compliment form. |
final public static Class<Double> | TYPE The java.lang.Class that represents this class. |
Method Summary |
|
public byte | byteValue() |
public static int | compare(double double1, double double2) Compares the two doubles. |
public int | compareTo(Double object) Compares the receiver with the Double parameter. |
native public static long | doubleToLongBits(double value) Answers the binary representation of the argument, as a long. |
native public static long | doubleToRawLongBits(double value) Answers the binary representation of the argument, as a long. |
public double | doubleValue() Answers the receiver's value as a double. |
public boolean | equals(Object object) Compares the argument to the receiver, and answers true if they represent
the same object using a class specific comparison. |
public float | floatValue() |
public int | hashCode() Answers an integer hash code for the receiver. |
public int | intValue() Answers the receiver's value as an integer. |
public boolean | isInfinite() Answers true if the receiver represents an infinite quantity, and false
otherwise. |
public static boolean | isInfinite(double d) Answers true if the argument represents an infinite quantity, and false
otherwise.
Parameters: d - value to check for infinitness. |
public boolean | isNaN() Answers true if the receiver does not represent a valid float quantity. |
public static boolean | isNaN(double d) Answers true if the argument does not represent a valid double quantity.
Parameters: d - value to check for numberness. |
native public static double | longBitsToDouble(long bits) Answers a double built from the binary representation given in the
argument. |
public long | longValue() |
public static double | parseDouble(String string) Answers the double which matches the passed in string. |
public short | shortValue() |
public static String | toHexString(double d)
Converts a double into a hexadecimal string
representation.
Parameters: d - The double to convert. |
public String | toString() Answers a string containing a concise, human-readable description of the
receiver. |
public static String | toString(double d) Answers a string containing a printable representation of the argument. |
public static Double | valueOf(String string) Answers the double which matches the passed in string. |
public static Double | valueOf(double d)
Returns a Double instance for the double
value passed. |