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 CINT function rounds decimal point numbers up or down to the nearest INTEGER value.

Syntax

value% = CINT(expression)

Parameter(s)

Description

Example(s)

Shows how CINT rounds values up or down as in “bankers’ rounding”.


a% = CINT(1.49): b% = CINT(1.50): c = 11.5
COLOR c: PRINT a%, b%, c 


1       2       11.5

See Also