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 int
Bias used in representing afloat
exponent.static final int
Bit mask to isolate the exponent field of afloat
.static final int
Maximum exponent a finitefloat
number may have.static final float
static final int
Minimum exponent a normalizedfloat
number may have.static final float
A constant holding the smallest positive normal value of typefloat
, 2-126.static final int
The exponent the smallest positivefloat
subnormal value would have if it could be normalized.static final float
static final float
static final float
static final float
static final int
Bit mask to isolate the sign bit of afloat
.static final int
Bit mask to isolate the significand field of afloat
.static final int
The number of logical bits in the significand of afloat
number, 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 afloat
number, including the implicit bit.- See Also:
-
MAX_EXPONENT
public static final int MAX_EXPONENTMaximum exponent a finitefloat
number 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 normalizedfloat
number 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 positivefloat
subnormal 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 afloat
exponent.- 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:
-