INT Function

Basic Computer Programming Language Command Set

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



Index