ceiling
Round up
ceiling x ceiling[x]
Returns the least integer greater than or equal to boolean or numeric x.
q)ceiling -2.1 0 2.1
-2 0 3
q)ceiling 01b
0 1i
ceiling is a multithreaded primitive.
Implicit iteration
ceiling is an atomic function.
q)ceiling(1.2;3.4 5.6)
2
4 6
q)ceiling`a`b!(1.2;3.4 5.6)
a| 2
b| 4 6
q)ceiling([]a:1.2 3.4;b:5.6 7.8)
a b
---
2 6
4 8
Domain and range
domain b g x h i j e f c s p m d z n u v t
range i . i h i j j j i . . . . . . . . .
Range: hij