Int() Function
- Last UpdatedFeb 21, 2017
- 1 minute read
Returns the integer less than (or equal to) a specified number.
Syntax
result = Int (number)
Parameters
number
A literal number, analog tagname, or numeric expression.
Example(s)
Int(4.7) returns 4.
Int(-4.7) returns -5.
Note: For negative real numbers, this function returns an integer that is smaller than the specified number. For example, Int(-4.7) is not -4, but -5. To have the integer part returned, use the Trunc() function. See Trunc() Function.