toOctal
This function is used by Ignition's Expression language.
Descriptionβ
Returns an octal formatted string representing the unsigned integer argument. If the argument is negative, the octal string represents the value plus 232.
Syntaxβ
toOctal(number)
Parametersβ
| Type | Parameter | Description |
|---|---|---|
| Integer | number | The value to convert to octal. |
Resultsβ
String - A string that is the octal of the specified value.
Examplesβ
Code Snippet
toOctal(255) //returns "377"
Code Snippet
toOctal(-255) //returns "37777777401"