The following examples illustrate how the Int and Fix functions return integer portions of numbers. In the case of a negative number argument, the Int function returns the first negative integer less than or equal to the number; the Fix function returns the first negative integer greater than or equal to the number.
Function | Returns |
---|---|
Int(99.8) |
99 |
Fix(99.2) |
99 |
Int(-99.8) |
-100 |
Fix (-99.8) |
-99 |
Int(-99.2) |
-100 |
Fix(-99.2) |
-99 |