Can you give us an example of what you are looking for? Eg. should 255 be `-11111111` or be the 2s complement negative of a 1 byte integer?
– Martijn PietersApr 01 '18 at 09:45
1 Answers1
0
bin(-2)
#'-0b10'
Use the built in binfunction to get a binary representation.