+ 1
Is there an opposite of the bin() function?
Is then an opposite of the bin() that turns a binary number into a decimal?
3 ответов
+ 11
Here it is:
int(binaryNumber, 2)
First argument is to enter the binary number, like 1001 1111
Second argument is to enter the base, which is 2 in case of binary number.
Working example over here: https://code.sololearn.com/cAI27hk6nVtY/?ref=app
+ 1
Thank you very much.
0
THANK YOU!!!!!!!!!