toBinary
This function is used by Ignition's Expression language.
Descriptionβ
Returns a binary formatted string representing the unsigned integer argument. If the argument is negative, the binary string represents the value plus 232.
Syntaxβ
toBinary(number)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Integer | number | The value to convert to binary. |
Resultsβ
String - The string form of the binary representation of the specified number.
Examplesβ
Code Snippet
toBinary(255) //returns "11111111"
Code Snippet
toBinary(-255) //returns "11111111111111111111111100000001"