Double.longBitsToDouble

Double.longBitsToDouble

Class Overview | Class Members | This Package | All Packages

Syntax
public static native double longBitsToDouble( long bits )
Parameters
bits
any long integer.
Returns
the double floating-point value with the same bit pattern.
Description
Returns the double-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 "double precision" bit layout. That floating-point value is returned as the result.

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

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

If the argument is any value in the range 0x7ff0000000000001L through 0x7fffffffffffffffL or in the range 0xfff0000000000001L through 0xffffffffffffffffL, the result is NaN. All IEEE 754 NaN values are, in effect, lumped together by the Java language into a single value.