INT INTeger
Function
INT changes non-integers (numbers that are not whole numbers) into integers or whole numbers.
How to use INT
INT is followed by a numeric value, for example
70 LET x=INT y
An expression must be enclosed in brackets. INT then returns the value rounded down to an integer.
Example
The command
PRINT INT 45.67, INT -7.66
displays
45 -8
Format
- INT num-const
- INT num-var
- INT (num-expr)
See also