int32_to_binary_string
Constants
- MAX_VALUE :
number
2147483647
- MIN_VALUE :
number
-2147483648
Functions
Converts an integer to easily readable binary string representation
MAX_VALUE : number
2147483647
Kind: global constant
MIN_VALUE : number
-2147483648
Kind: global constant
int32_to_binary_string(input_value, [byte_separator], [bit_count]) ⇒ string
Converts an integer to easily readable binary string representation
Kind: global function
| Param | Type | Description |
|---|---|---|
| input_value | number | |
| [byte_separator] | string | insert this string between each group of 8 bits, defaults to a space |
| [bit_count] | number | how many bits to actually render, cropped on the LSB |
Example
1024 -> "00000000 00000000 00000100 00000000"
Example
-1 -> "11111111 11111111 11111111 11111111"