Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

binary to decimal python

 ==== Convert binary to decimal in Python ======
a = '11001100' # input a binary

b = int(a,2) # base 2 to base 10
print(b,type(b)) # 204 <class 'int'>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #binary #decimal #python
ADD COMMENT
Topic
Name
6+2 =