Float.intBitsToFloat

Float.intBitsToFloat

Class Overview | Class Members | This Package | All Packages

Syntax
public static native float intBitsToFloat( int bits )
Parameters
bits
an integer.
Returns
the single-format floating-point value with the same bit pattern.
Description
Returns the single-float corresponding to a given bit represention. The argument is considered to be a representation of a floating-point value according to the IEEE 754 floating-point "single precision" bit layout.

If the argument is 0x7f800000, the result is positive infinity.

If the argument is 0xff800000, the result is negative infinity.

If the argument is any value in the range 0x7f800001 through 0x7f8fffff or in the range 0xff800001 through 0xff8fffff, the result is NaN. All IEEE 754 NaN values are, in effect, lumped together by the Java language into a single value.