Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Python int to binary

integer = 7
bit_count = 5
print(f'{integer:0{bit_count}b}') # 0 filled
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #Python #int #binary
ADD COMMENT
Topic
Name
3+8 =