Java: Range of a double

A double is a 64-bit IEEE 754 floating point.

Min value (inclusive) and max value (inclusive):

−1.7976931348623157×10308 … 1.7976931348623157×10308

or, equivalently

−1.111⋯1×21023 … 1.111⋯1×21023

The maximum value is available as a constant: Double.MAX_VALUE.

The minimum value is -Double.MAX_VALUE, and not Double.MIN_VALUE.

IEEE 754 values are symmetrical around origo as opposed to two’s complement integers.

The constant Double.MIN_VALUE is the smallest value greater than 0, i.e. not the smallest possible value. (This constant corresponds to Epsilon in .NET.)

See ranges of all primitive types here: Java: Ranges of Primitive Types.