Specifications
Chapter 15. Function Reference
366
Syntax:
INT(numericexpression)
Parameter:
numericexpression
A real expression.
Description:
INT returns the largest whole number less than or equal to the value of
numericexpression by stripping off the fractional part.
• You use INT as shown below to round off the fractional part of a real number.
INT(realnumber+0.5)
Example: dat=1.5
PRINT INT(dat+0.5)
• If numericexpression is negative, this function operates as shown below.
PRINT INT(-1.5)
PRINT INT(-0.2)
INTeger Numeric operation function
INT
Returns the largest whole number less than or equal to the value of a given numeric expres-
sion
2
-2
-1