Skip to main content
Version: 8.1

fromOctal

This function is used by Ignition's Expression language.

Description​

Returns an integer value of the octal formatted string argument. Numbers outside of the range (-231) - (231-1), and strings that are not octal numbers, return null.

Syntax​

fromOctal(string)

  • Parameters

    • String string - A string representation of an octal.
  • Results

    • Integer - The integer of the octal value.

Examples​

Code Snippet
fromOctal("77") //returns 63
Code Snippet
fromOctal("-77") //returns -63