public class

FloatConsts

extends Object
java.lang.Object
   ↳ sun.misc.FloatConsts

Class Overview

This class contains additional constants documenting limits of the float type.

Summary

Constants
int EXP_BIAS Bias used in representing a float exponent.
int EXP_BIT_MASK Bit mask to isolate the exponent field of a float.
int MAX_EXPONENT Maximum exponent a finite float number may have.
float MAX_VALUE
int MIN_EXPONENT Minimum exponent a normalized float number may have.
float MIN_NORMAL A constant holding the smallest positive normal value of type float, 2-126.
int MIN_SUB_EXPONENT The exponent the smallest positive float subnormal value would have if it could be normalized.
float MIN_VALUE
float NEGATIVE_INFINITY
float NaN
float POSITIVE_INFINITY
int SIGNIFICAND_WIDTH The number of logical bits in the significand of a float number, including the implicit bit.
int SIGNIF_BIT_MASK Bit mask to isolate the significand field of a float.
int SIGN_BIT_MASK Bit mask to isolate the sign bit of a float.
[Expand]
Inherited Methods
From class java.lang.Object

Constants

public static final int EXP_BIAS

Bias used in representing a float exponent.

Constant Value: 127 (0x0000007f)

public static final int EXP_BIT_MASK

Bit mask to isolate the exponent field of a float.

Constant Value: 2139095040 (0x7f800000)

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).

Constant Value: 127 (0x0000007f)

public static final float MAX_VALUE

Constant Value: 3.4028235E38

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).

Constant Value: -126 (0xffffff82)

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).

Constant Value: 1.17549435E-38

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).

Constant Value: -149 (0xffffff6b)

public static final float MIN_VALUE

Constant Value: 1.4E-45

public static final float NEGATIVE_INFINITY

Constant Value: -Infinity

public static final float NaN

Constant Value: NaN

public static final float POSITIVE_INFINITY

Constant Value: Infinity

public static final int SIGNIFICAND_WIDTH

The number of logical bits in the significand of a float number, including the implicit bit.

Constant Value: 24 (0x00000018)

public static final int SIGNIF_BIT_MASK

Bit mask to isolate the significand field of a float.

Constant Value: 8388607 (0x007fffff)

public static final int SIGN_BIT_MASK

Bit mask to isolate the sign bit of a float.

Constant Value: -2147483648 (0x80000000)