Rounds the provided real value upwards to the nearest integer. The result is the smallest integer greater than or equal to the input.
Examples
Produces 4.
Produces -3.
REM Use CEIL to calculate number of pages needed
items = 23
perPage = 10
pages = CEIL(items / perPage)
PRINT "Pages required = "; pages
Notes
- Always rounds towards positive infinity.
- Return type is a 64-bit integer.
- Differs from INT, which truncates towards zero, and ROUND, which rounds to the nearest integer.
See also: FLOOR · INT · ROUND