%INT

Return the whole number in a numeric expression

WSupported on Windows
USupported on Unix
VSupported on OpenVMS
NSupported in Synergy .NET
number = %INT(expression)

Return value

number

The whole number portion of the specified numeric expression. (n)

Arguments

expression

The expression whose whole number portion is to be returned. (a or n)

Discussion

%INT returns the whole number portion of a numeric expression.

If expression is type a, no conversion occurs.

If the expression is type d or d., the result is the same type.

If the expression is type i, the result is d.