QB64.com

QB64 is a modern extended BASIC programming language that retains QBasic/QuickBASIC 4.5 compatibility and compiles native binaries for Windows, Linux, and macOS.

The INT function rounds a numeric value down to the next whole number.

Syntax

result = INT(expression)

Parameter(s)

Description

Example(s)

Displaying the rounding behavior of INT.


PRINT INT(2.5)
PRINT INT(-2.5)


 2 
-3

See Also