Function bin #
Format a number as binary.
Syntax #
math.bin(value)
Parameters #
Parameter | Type | Description |
---|---|---|
value |
number | Value to be stringified |
Returns #
Type | Description |
---|---|
string | The formatted value |
Examples #
//the following outputs "0b10"
math.bin(2)