Package sun.misc
Class FloatConsts
- java.lang.Object
-
- sun.misc.FloatConsts
-
public class FloatConsts extends Object
This class contains additional constants documenting limits of thefloattype.
-
-
Field Summary
Fields Modifier and Type Field Description static intEXP_BIASBias used in representing afloatexponent.static intEXP_BIT_MASKBit mask to isolate the exponent field of afloat.static intMAX_EXPONENTMaximum exponent a finitefloatnumber may have.static floatMAX_VALUEstatic intMIN_EXPONENTMinimum exponent a normalizedfloatnumber may have.static floatMIN_NORMALA constant holding the smallest positive normal value of typefloat, 2-126.static intMIN_SUB_EXPONENTThe exponent the smallest positivefloatsubnormal value would have if it could be normalized.static floatMIN_VALUEstatic floatNaNstatic floatNEGATIVE_INFINITYstatic floatPOSITIVE_INFINITYstatic intSIGN_BIT_MASKBit mask to isolate the sign bit of afloat.static intSIGNIF_BIT_MASKBit mask to isolate the significand field of afloat.static intSIGNIFICAND_WIDTHThe number of logical bits in the significand of afloatnumber, including the implicit bit.
-
-
-
Field Detail
-
POSITIVE_INFINITY
public static final float POSITIVE_INFINITY
- See Also:
- Constant Field Values
-
NEGATIVE_INFINITY
public static final float NEGATIVE_INFINITY
- See Also:
- Constant Field Values
-
NaN
public static final float NaN
- See Also:
- Constant Field Values
-
MAX_VALUE
public static final float MAX_VALUE
- See Also:
- Constant Field Values
-
MIN_VALUE
public static final float MIN_VALUE
- See Also:
- Constant Field Values
-
MIN_NORMAL
public static final float MIN_NORMAL
A constant holding the smallest positive normal value of typefloat, 2-126. It is equal to the value returned byFloat.intBitsToFloat(0x00800000).- See Also:
- Constant Field Values
-
SIGNIFICAND_WIDTH
public static final int SIGNIFICAND_WIDTH
The number of logical bits in the significand of afloatnumber, including the implicit bit.- See Also:
- Constant Field Values
-
MAX_EXPONENT
public static final int MAX_EXPONENT
Maximum exponent a finitefloatnumber may have. It is equal to the value returned byMath.ilogb(Float.MAX_VALUE).- See Also:
- Constant Field Values
-
MIN_EXPONENT
public static final int MIN_EXPONENT
Minimum exponent a normalizedfloatnumber may have. It is equal to the value returned byMath.ilogb(Float.MIN_NORMAL).- See Also:
- Constant Field Values
-
MIN_SUB_EXPONENT
public static final int MIN_SUB_EXPONENT
The exponent the smallest positivefloatsubnormal value would have if it could be normalized. It is equal to the value returned byFpUtils.ilogb(Float.MIN_VALUE).- See Also:
- Constant Field Values
-
EXP_BIAS
public static final int EXP_BIAS
Bias used in representing afloatexponent.- See Also:
- Constant Field Values
-
SIGN_BIT_MASK
public static final int SIGN_BIT_MASK
Bit mask to isolate the sign bit of afloat.- See Also:
- Constant Field Values
-
EXP_BIT_MASK
public static final int EXP_BIT_MASK
Bit mask to isolate the exponent field of afloat.- See Also:
- Constant Field Values
-
SIGNIF_BIT_MASK
public static final int SIGNIF_BIT_MASK
Bit mask to isolate the significand field of afloat.- See Also:
- Constant Field Values
-
-