Top  | Previous | Next

Strings / fromBinary

fromBinary(string)

Returns an integer value of the binary formatted string argument. Numbers outside of the range (-231) - (231-1), and strings that are not binary numbers, return null.

 

fromBinary("1111")

...returns 15

 

fromBinary("-1111")

...returns -15