INT
Syntax
Section titled “Syntax”INT(numericExpression)
Description
Section titled “Description”Rounds the given expression by truncation. This function behaves exactly like the one in the Sinclair BASIC ROM. Argument must be a numeric expression. Returned value is a long (32 bit) number that will be casted (converted) to the required type.
Examples
Section titled “Examples”REM Round by truncationLET a = 1.5PRINT "Int value of a is "; INT(a)REM 'Will print 1
Remarks
Section titled “Remarks”- This function is 100% Sinclair BASIC Compatible