%INT

Return the whole number in a numeric expression

WTSupported in traditional Synergy on Windows
WNSupported in Synergy .NET on Windows
USupported on UNIX
VSupported on OpenVMS
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.