Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| v3:int [2021/09/22 09:46] – created neils | v3:int [2023/08/22 13:32] (current) – [FLOOR] neils | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ====== | + | ====== |
| - | The INT() function returns the integer part of a floating point value, as floating point. | + | The '' |
| + | <adm note> | ||
| + | The function is equivalent to CBM BASIC' | ||
| + | </ | ||
| ===== Function header ===== | ===== Function header ===== | ||
| - | DECLARE FUNCTION | + | DECLARE FUNCTION |
| ===== Example ===== | ===== Example ===== | ||
| - | PRINT INT(3.14159) : REM outputs 3 | + | PRINT FLOOR(3.14159) : REM outputs 3 |
| <adm note> | <adm note> | ||
| To convert a floating point number to integer type, see [[v3: | To convert a floating point number to integer type, see [[v3: | ||
| </ | </ | ||