Java Reference
In-Depth Information
java.lang Class Double
This class contains several methods for converting and manipulating data
defined in IEEE 754 double format as well as methods for creating con-
stants and special types.
The following constants are defined in the class:
MAX_VALUE
This constant returns the largest magnitude that can be held in a variable of
type double. The constant is defined as:
public final static double MAX_VALUE;
The largest value is the same for positive or negative numbers.
MAX_VALUE returns:
1.79769313486231570e+308
MIN_VALUE
This constant returns the smallest magnitude that can be held in a variable
of type double. The constant is defined as:
public final static double MIN_VALUE;
The smallest value is the same for positive or negative numbers.
MIN_VALUE returns:
4.94065645841246544e-324
NaN
This constant returns an IEEE 754 Not-a-Number in double format. The
constant is defined as follows:
public final static double NaN;
The value returned as a NaN cannot be compared to other numeric
operands, including another NaN or itself. The NaN encoding is:
0x7ff8000000000000L
NEGATIVE_INFINITY
This constant returns the IEEE 754 value for negative infinity in double for-
mat. It is defined as follows:
public static final double NEGATIVE_INFINITY;
Search WWH ::




Custom Search