User Tools

Site Tools


int_truncate_fraction_.htm
Navigation:  Language Reference > 13 - Built-in Functions >====== INT (truncate fraction) ====== Previous pageReturn to chapter overviewNext page

INT(expression)

blk2blue.jpg

INT Return integer.
expression A numeric constant, variable, or expression.

The INT procedure returns the integer portion of a numeric expression. No rounding is performed, and the sign remains unchanged.

Return Data Type: REAL or DECIMAL

Example:

 !INT(8.5)     returns 8

 !INT(-5.9)    returns -5

x = INT(y)      !Return integer portion of y variable contents

See Also:

BCD Operations and Procedures

ROUND

int_truncate_fraction_.htm.txt · Last modified: 2021/04/15 15:57 (external edit)