Name

unbinary()

Examples
s1 = "00010000"
s2 = "00001000"
s3 = "00000100"
print(unbinary(s1))  # Prints "16"
print(unbinary(s2))  # Prints "8"
print(unbinary(s3))  # Prints "4"
Description Converts a string representation of a binary number to its equivalent integer value. For example, unbinary("00001000") will return 8.
Syntax
	unbinary(str)
Parameters
strstr: string representation of a binary number
Related binary()
hex()
unhex()
Updated on Tue Jul 11 06:52:24 2017.
Creative Commons License