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 _CEIL function rounds a numeric value up to the next whole number or INTEGER value.

Syntax

result = _CEIL(expression)

Availability

Example(s)

Displaying the rounding behavior of INT, CINT and FIX vs _CEIL.


PRINT INT(2.5), CINT(2.5), FIX(2.5), _CEIL(2.5)
PRINT INT(-2.5), CINT(-2.5), FIX(-2.5), _CEIL(-2.5)


 2        2         2         3
-3       -2        -2        -2

See Also