INT

Function

INT returns the truncated value of the argument, if positive, or rounds the value if negative.

Syntax

INT(N)

Where N is a numeric expression.

Examples

A = INT(123.456)

sets A equal to 123.

Remarks

Negative numbers will be rounded in a negative direction.

A=INT(-4.75)

Sets A equal to -5

FIX is an alternative method.