Java Reference
In-Depth Information
public final static float MAX_VALUE;
The largest value is the same for positive or negative numbers.
MAX_VALUE returns:
3.40282346638528860e+38
MIN_VALUE
This constant returns the smallest magnitude that can be held in a variable
of type float. The constant is defined as:
public final static float MIN_VALUE;
The smallest value is the same for positive or negative numbers.
MIN_VALUE returns:
1.40129846432481707e-45
NaN
This constant returns an IEEE 754 Not-a-Number in float format. The con-
stant is defined as follows:
public final static float NaN;
The value returned as a NaN cannot be compared to other numeric
operands, including another NaN or itself. The NaN encoding float is:
0x7ffc00000
NEGATIVE_INFINITY
ThisconstantreturnstheIEEE754valuefornegativeinfinityinatypefloat.
It is defined as follows:
public static final float NEGATIVE_INFINITY;
A negative infinity compares less-than any other value, except itself.
The float encoding for negative infinity is:
0xff800000
POSITIVE_INFINITY
This constant returns the IEEE 754 value for positive infinity in a type float.
It is defined as follows:
public static final float POSITIVE_INFINITY;
A positive infinity compares greater-than any other value, except itself.
The float encoding for positive infinity is:
0x7f800000
Search WWH ::




Custom Search