%INT (Convert to Integer Format)

%INT(numeric or character expression)

%INT converts the value of the expression to integer. Any decimal digits are truncated. This built-in function may only be used in expressions. %INT can be used to truncate the decimal positions from a float or decimal value allowing it to be used as an array index.

If the parameter is a character expression

For more information, see Conversion Operations or Built-in Functions.

Figure 1 shows an example of the %INT built-in function.