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 |
| ||
Related |
binary() hex() unhex() |
Updated on Mon Sep 21 15:53:26 2020.
If you see any errors or have comments, please let us know.
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License