Package sun.misc
Class DoubleConsts
- java.lang.Object
-
- sun.misc.DoubleConsts
-
public class DoubleConsts extends Object
This class contains additional constants documenting limits of thedoubletype.
-
-
Field Summary
Fields Modifier and Type Field Description static intEXP_BIASBias used in representing adoubleexponent.static longEXP_BIT_MASKBit mask to isolate the exponent field of adouble.static intMAX_EXPONENTMaximum exponent a finitedoublenumber may have.static doubleMAX_VALUEstatic intMIN_EXPONENTMinimum exponent a normalizeddoublenumber may have.static doubleMIN_NORMALA constant holding the smallest positive normal value of typedouble, 2-1022.static intMIN_SUB_EXPONENTThe exponent the smallest positivedoublesubnormal value would have if it could be normalized.static doubleMIN_VALUEstatic doubleNaNstatic doubleNEGATIVE_INFINITYstatic doublePOSITIVE_INFINITYstatic longSIGN_BIT_MASKBit mask to isolate the sign bit of adouble.static longSIGNIF_BIT_MASKBit mask to isolate the significand field of adouble.static intSIGNIFICAND_WIDTHThe number of logical bits in the significand of adoublenumber, including the implicit bit.
-
-
-
Field Detail
-
POSITIVE_INFINITY
public static final double POSITIVE_INFINITY
- See Also:
- Constant Field Values
-
NEGATIVE_INFINITY
public static final double NEGATIVE_INFINITY
- See Also:
- Constant Field Values
-
NaN
public static final double NaN
- See Also:
- Constant Field Values
-
MAX_VALUE
public static final double MAX_VALUE
- See Also:
- Constant Field Values
-
MIN_VALUE
public static final double MIN_VALUE
- See Also:
- Constant Field Values
-
MIN_NORMAL
public static final double MIN_NORMAL
A constant holding the smallest positive normal value of typedouble, 2-1022. It is equal to the value returned byDouble.longBitsToDouble(0x0010000000000000L).- Since:
- 1.5
- See Also:
- Constant Field Values
-
SIGNIFICAND_WIDTH
public static final int SIGNIFICAND_WIDTH
The number of logical bits in the significand of adoublenumber, including the implicit bit.- See Also:
- Constant Field Values
-
MAX_EXPONENT
public static final int MAX_EXPONENT
Maximum exponent a finitedoublenumber may have. It is equal to the value returned byMath.ilogb(Double.MAX_VALUE).- See Also:
- Constant Field Values
-
MIN_EXPONENT
public static final int MIN_EXPONENT
Minimum exponent a normalizeddoublenumber may have. It is equal to the value returned byMath.ilogb(Double.MIN_NORMAL).- See Also:
- Constant Field Values
-
MIN_SUB_EXPONENT
public static final int MIN_SUB_EXPONENT
The exponent the smallest positivedoublesubnormal value would have if it could be normalized. It is equal to the value returned byFpUtils.ilogb(Double.MIN_VALUE).- See Also:
- Constant Field Values
-
EXP_BIAS
public static final int EXP_BIAS
Bias used in representing adoubleexponent.- See Also:
- Constant Field Values
-
SIGN_BIT_MASK
public static final long SIGN_BIT_MASK
Bit mask to isolate the sign bit of adouble.- See Also:
- Constant Field Values
-
EXP_BIT_MASK
public static final long EXP_BIT_MASK
Bit mask to isolate the exponent field of adouble.- See Also:
- Constant Field Values
-
SIGNIF_BIT_MASK
public static final long SIGNIF_BIT_MASK
Bit mask to isolate the significand field of adouble.- See Also:
- Constant Field Values
-
-