ceil

OpenTuring

ceilreal-to-integer function

Syntax   ceil (r : real) : int

Description   Returns the smallest integer greater than or equal to r.

Details   The ceil (ceiling) function is used to convert a real number to an integer. The result is the smallest integer that is greater than or equal to r. In other words, the ceil function rounds up to the nearest integer. For example, ceil (3) is 3, ceil (2.25) is 3 and ceil (-8.43) is -8.

See also   See also the floor and round functions.