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 Feb 27 14:07:12 2024.

If you see any errors or have comments, please let us know.