decimal_to_binary

Math.decimal_to_binary(integer, nbits=8, grouped=0)

Converts integer to binary string of length nbits, sign bit and then m.s.b. on the left. Negative numbers are twos-complements, i.e., bitwise complement + 1.