Top  | Previous | Next

Strings / toBinary

toBinary(int)

Returns an binary formatted string representing the unsigned integer argument. If the argument is negative, the binary string represents the value plus 232.

 

toBinary(255)

...returns "11111111"

 

toBinary(-255)

...returns "11111111111111111111111100000001"