bits_as_string {bitsqueezr} | R Documentation |
Generate a character vector of ones, zeros, and spaces, representing the bits in a double. Spaces are used to separate the sign bit, 11 exponent bits, and 52 fraction bits.
bits_as_string(d)
d |
a numeric value |
# Output binary representation of pi bits_as_string(pi) # 0 10000000000 1001001000011111101101010100010001000010110100011000