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, the exponent and the mantissa therefore all 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 it is the bits of the real 12.0 that 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