This class contains additional constants documenting limits of the
double type.
- Author(s):
- Joseph D. Darcy
Don't let anyone instantiate this class.
A constant holding the smallest positive normal value of type
double, 2
-1022. It is equal to the
value returned by
Double.longBitsToDouble(0x0010000000000000L).
public static final double MIN_NORMAL = 2.2250738585072014E-308;
The number of logical bits in the significand of a
double number, including the implicit bit.
Maximum exponent a finite
double number may have.
It is equal to the value returned by
Math.ilogb(Double.MAX_VALUE).
Minimum exponent a normalized
double number may
have. It is equal to the value returned by
Math.ilogb(Double.MIN_NORMAL).
The exponent the smallest positive
double
subnormal value would have if it could be normalized. It is
equal to the value returned by
FpUtils.ilogb(Double.MIN_VALUE).
Bias used in representing a
double exponent.
public static final int EXP_BIAS = 1023;
Bit mask to isolate the sign bit of a
double.
Bit mask to isolate the exponent field of a
double.
public static final long EXP_BIT_MASK = 0x7FF0000000000000L;
Bit mask to isolate the significand field of a
double.