readBinary

Reads a binary number from string

readBinary
(
string str
)

Return Value

Type: uinteger

the number in a uinteger

Throws

Exception in case string is not a binary number, or too big to store in uinteger, or empty string

Examples

assert("01010101".readBinary == 0B01010101);

Meta