Skip to main content
Version: 7.9

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

    • int - The integer of the octal value.

Examples

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