--- title: "toOctal" description: "Returns an octal formatted string representing the unsigned integer argument." --- # toOctal > Returns an octal formatted string representing the unsigned integer argument. **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 ```python title="Code Snippet" toOctal(255) //returns "377" ``` ```python title="Code Snippet" toOctal(-255) //returns "37777777401" ```