Skip to content
Tristan Hume edited this page Apr 23, 2012 · 2 revisions

#ceil

##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.html and round.html functions.

Clone this wiki locally