Basic computer language commands

Basic computer programming language

INT Function

Purpose:

To truncate an expression to a whole number.

Syntax:

INT(x)

Comments:

Negative numbers return the next lowest number.

The FIX and CINT functions also return integer values.

Examples:

PRINT INT(98. 89)
 98

PRINT INT(-12. 11)
 -13

BASIC commands Main Menu

Index