INT function

Syntax

INT (expression)

Description

Use the INT function to return the integer portion of an expression.

expression must evaluate to a numeric value. Any arithmetic operations specified are calculated using the full accuracy of the system. The fractional portion of the value is truncated, not rounded, and the integer portion remaining is returned.

If expression evaluates to the null value, null is returned.

Example

PRINT "123.45 ", INT(123.45)
PRINT "454.95 ", INT(454.95)

This is the program output:

123.45   123
454.95   454