realBits

realBits

> Functions

Returns the internal representation of the real number x as an integer: the 64 bits of the real in IEEE 754 format (double precision), read as they are as a signed 64-bit integer. The sign, exponent and mantissa therefore end up in the returned integer.

Note that this is not the binary representation of x: realBits(12) does not return 1100 but 4622945017495814144, because the bits of the real 12.0 are read. To get the binary representation of an integer, use binString.

The inverse function is bitsToReal: bitsToReal(realBits(x)) gives back exactly x.

Parameters
Return
Note