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 Summary
FieldsModifier 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_INFINITY
public static final float POSITIVE_INFINITY- See Also:
-
NEGATIVE_INFINITY
public static final float NEGATIVE_INFINITY- See Also:
-
NaN
public static final float NaN- See Also:
-
MAX_VALUE
public static final float MAX_VALUE- See Also:
-
MIN_VALUE
public static final float MIN_VALUE- See Also:
-
MIN_NORMAL
public 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_WIDTH
public static final int SIGNIFICAND_WIDTHThe number of logical bits in the significand of afloatnumber, including the implicit bit.- See Also:
-
MAX_EXPONENT
public 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_EXPONENT
public 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_EXPONENT
public 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_BIAS
public static final int EXP_BIASBias used in representing afloatexponent.- See Also:
-
SIGN_BIT_MASK
public static final int SIGN_BIT_MASKBit mask to isolate the sign bit of afloat.- See Also:
-
EXP_BIT_MASK
public static final int EXP_BIT_MASKBit mask to isolate the exponent field of afloat.- See Also:
-
SIGNIF_BIT_MASK
public static final int SIGNIF_BIT_MASKBit mask to isolate the significand field of afloat.- See Also:
-