🔍

Ceil

ceil returns the greatest integer greater or equal to the argument.

Syntax: ceil x; ceil [x]

o)ceil 10.5
11f
o)ceil -10.5
-10f
o)ceil -2.5 0 2.5
-2 -0 -2f
o)abs ceil -1.2
1f
o)

The function is atomic:

o)ceil(2.3 4.5;6.7)
3 5f
7f