This is an old revision of the document!
Table of Contents
INT
PET VIC-20 C64 C16 Plus/4 C128 X16
The INT()
function returns the integer part of a floating point value, also as a floating point number.
Function header
DECLARE FUNCTION INT AS FLOAT (num AS FLOAT) SHARED STATIC INLINE
Example
PRINT INT(3.14159) : REM outputs 3
Note
To convert a floating point number to integer type, see CINT.