Java: Range of a double
double is a 64-bit IEEE 754 floating point.
Min value (inclusive) and max value (inclusive):
The maximum value is available as a constant:
The minimum value is
-Double.MAX_VALUE, and not
Double.MIN_VALUE. For details, see Why's Double.MIN_VALUE is positive? Integer.MIN_VALUE is negative!
Double.MIN_VALUE is the smallest value greater than 0, i.e. not the smallest possible value. (This constant corresponds to
Epsilon in .NET.) For details, see Double.MIN_VALUE vs Double.MIN_NORMAL
See ranges of all primitive types here: Ranges of Primitive Types