int_truncate_fraction_.htm
Navigation: Language Reference > 13 - Built-in Functions >====== INT (truncate fraction) ====== | |
INT(expression)
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:
int_truncate_fraction_.htm.txt · Last modified: 2021/04/15 15:57 by 127.0.0.1