Data Types

integer

Supported By

Description

The integer data type represents an integer.

Notes

The XION Scripting Language Standard states that the integer type must have the range of a 32-bit signed two's-complement integer, -2147483648 to +2147483647, or larger. The integer type in OpenXION has arbitrary range.

The XION Scripting Language Standard also states that if a calculation produces an integer outside the range of the integer type, the result must be converted to a number instead of rolling over or overflowing.

An integer can always convert to a string, number, or complex. A string can convert to an integer if it has the correct format. A number can convert to an integer if its numeric value is a mathematical integer and it is within the range of the integer type. A complex can convert to an integer if its imaginary part is zero and its real part is a mathematical integer in the range of the integer type.

The format used for the conversion of an integer to a string is determined by the numberFormat property.