Package com.sun.ts.lib.util
Class FloatConsts
java.lang.Object
com.sun.ts.lib.util.FloatConsts
This class contains additional constants documenting limits of the 
float type.- Author:
- Joseph D. Darcy
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final intBias used in representing afloatexponent.static final intBit mask to isolate the exponent field of afloat.static final intMaximum exponent a finitefloatnumber may have.static final floatstatic final intMinimum exponent a normalizedfloatnumber may have.static final floatA constant holding the smallest positive normal value of typefloat, 2-126.static final intThe exponent the smallest positivefloatsubnormal value would have if it could be normalized.static final floatstatic final floatstatic final floatstatic final floatstatic final intBit mask to isolate the sign bit of afloat.static final intBit mask to isolate the significand field of afloat.static final intThe number of logical bits in the significand of afloatnumber, including the implicit bit.
- 
Method Summary
- 
Field Details- 
POSITIVE_INFINITYpublic static final float POSITIVE_INFINITY- See Also:
 
- 
NEGATIVE_INFINITYpublic static final float NEGATIVE_INFINITY- See Also:
 
- 
NaNpublic static final float NaN- See Also:
 
- 
MAX_VALUEpublic static final float MAX_VALUE- See Also:
 
- 
MIN_VALUEpublic static final float MIN_VALUE- See Also:
 
- 
MIN_NORMALpublic static final float MIN_NORMALA constant holding the smallest positive normal value of typefloat, 2-126. It is equal to the value returned byFloat.intBitsToFloat(0x00800000).- See Also:
 
- 
SIGNIFICAND_WIDTHpublic static final int SIGNIFICAND_WIDTHThe number of logical bits in the significand of afloatnumber, including the implicit bit.- See Also:
 
- 
MAX_EXPONENTpublic static final int MAX_EXPONENTMaximum exponent a finitefloatnumber may have. It is equal to the value returned byMath.ilogb(Float.MAX_VALUE).- See Also:
 
- 
MIN_EXPONENTpublic static final int MIN_EXPONENTMinimum exponent a normalizedfloatnumber may have. It is equal to the value returned byMath.ilogb(Float.MIN_NORMAL).- See Also:
 
- 
MIN_SUB_EXPONENTpublic static final int MIN_SUB_EXPONENTThe 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:
 
- 
EXP_BIASpublic static final int EXP_BIASBias used in representing afloatexponent.- See Also:
 
- 
SIGN_BIT_MASKpublic static final int SIGN_BIT_MASKBit mask to isolate the sign bit of afloat.- See Also:
 
- 
EXP_BIT_MASKpublic static final int EXP_BIT_MASKBit mask to isolate the exponent field of afloat.- See Also:
 
- 
SIGNIF_BIT_MASKpublic static final int SIGNIF_BIT_MASKBit mask to isolate the significand field of afloat.- See Also:
 
 
-