binString

binString

> Functions

Returns a string containing the binary representation of the integer x, without prefix or leading zeros: binString(12) returns "1100".

A negative number is written in two's complement over 64 bits, sign bit first: binString(-1) returns the character 1 64 times. Big integers are written with their sign.

For the inverse operation, write the number directly with the binary literal 0b1100. To get the internal bits of a real number, see realBits.

Parameters
Return
Note