Double.doubleToLongBits

Double.doubleToLongBits

Class Overview | Class Members | This Package | All Packages

Syntax
public static native long doubleToLongBits( double value )
Parameters
value
a double precision floating-point number.
Returns
the bits that represent the floating-point number.
Description
Returns a representation of the specified floating-point value according to the IEEE 754 floating-point "double format" bit layout.

Bit 63 represents the sign of the floating-point number. Bits 62-52 represent the exponent. Bits 51-0 represent the significand (sometimes called the mantissa) of the floating-point number.

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

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

If the argument is NaN, the result is 0x7ff8000000000000L.