Class FloatConsts

java.lang.Object
com.sun.ts.lib.util.FloatConsts

public class FloatConsts extends Object
This class contains additional constants documenting limits of the float type.
Author:
Joseph D. Darcy
  • 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_NORMAL
      A constant holding the smallest positive normal value of type float, 2-126. It is equal to the value returned by Float.intBitsToFloat(0x00800000).
      See Also:
    • SIGNIFICAND_WIDTH

      public static final int SIGNIFICAND_WIDTH
      The number of logical bits in the significand of a float number, including the implicit bit.
      See Also:
    • MAX_EXPONENT

      public static final int MAX_EXPONENT
      Maximum exponent a finite float number may have. It is equal to the value returned by Math.ilogb(Float.MAX_VALUE).
      See Also:
    • MIN_EXPONENT

      public static final int MIN_EXPONENT
      Minimum exponent a normalized float number may have. It is equal to the value returned by Math.ilogb(Float.MIN_NORMAL).
      See Also:
    • MIN_SUB_EXPONENT

      public static final int MIN_SUB_EXPONENT
      The exponent the smallest positive float subnormal value would have if it could be normalized. It is equal to the value returned by FpUtils.ilogb(Float.MIN_VALUE).
      See Also:
    • EXP_BIAS

      public static final int EXP_BIAS
      Bias used in representing a float exponent.
      See Also:
    • SIGN_BIT_MASK

      public static final int SIGN_BIT_MASK
      Bit mask to isolate the sign bit of a float.
      See Also:
    • EXP_BIT_MASK

      public static final int EXP_BIT_MASK
      Bit mask to isolate the exponent field of a float.
      See Also:
    • SIGNIF_BIT_MASK

      public static final int SIGNIF_BIT_MASK
      Bit mask to isolate the significand field of a float.
      See Also: