Command Reference : Function Reference : Function Reference: C
  
 
@ceil
Smallest number greater than or equal to (with optional precision).
Syntax: @ceil(x[, n])
x: number
n: (optional) integer
Return: number
@ceil(x) returns , the smallest integer that is greater than or equal to x.
@ceil(x, n) returns , the smallest decimal number that is greater than or equal to x at the given precision.
The decimal offset n may be interpreted as the precision to use when computing the ceiling. If n is not an integer, the integer floor will be used.
Examples
= @ceil(@pi)
returns 4.
= @ceil(@pi,2)
returns 3.15.
= @ceil(-@pi)
returns -3.
Cross-references
See also @floor.