Skip to main content
Version: 8.1

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

    • 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"