
328
____________________________________________________________________
INTeger Numeric operation function
INT
Returns the largest whole number less than or equal to the value of a given numeric
expression
____________________________________________________________________
Syntax:
Syntax:Syntax:
Syntax:
INT(numericexpression)
Parameter:
Parameter:Parameter:
Parameter:
numericexpression
A real expression.
Description:
Description:Description:
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)
2
• If numericexpression is negative, this function operates as shown below.
PRINT INT(-0.5)
PRINT INT(-0.2)
-2
-1
Comentários a estes Manuais