Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

binary number in python 32 bit

>>> '{:032b}'.format(100)
'00000000000000000000000001100100'
>>> '{:032b}'.format(8589934591)
'111111111111111111111111111111111'
>>> '{:032b}'.format(8589934591 + 1)
'1000000000000000000000000000000000'    # N.B. this is 33 digits long
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #binary #number #python #bit
ADD COMMENT
Topic
Name
9+2 =