title: “MATH::CEIL Function” author: “Pierre Laplante laplante@plcb.ca” date: “2023” version: “1.0.0” section: “1g”
math::ceil returns the smallest integer greater than or equal to x.
math::ceil or ceil(expression[, decimal: integer])
The math::ceil
function returns the smallest integer greater than or equal to x.
When the optional decimal parameter is provided (from 0 to 10), the result is rounded up to the specified number of decimal places.
res={{
ceil({"x1" : [5.5, -5.5, 3.1415926535, -3.99], "y1": 2.7182818}, decimal:2);
ceil(3.1415926535, decimal:2); "\n";
ceil([5.5, -5.5, 3.1415926535, -3.99], decimal:2); "\n";
ceil([5.5, -5.5], [3.1415926535, -3.99], decimal:0); " ";
ceil([5.5, -5.5, 3.1415926535, -3.99], decimal:2); "\n";
ceil(5.5, -5.5, 3.1415926535, -3.99, decimal:0); " ";
ceil(5.5, -5.5, 3.1415926535, -3.99, decimal:4); "\n";
ceil(5.5); " ";
ceil("-5.5"); " ";
ceil(3.1415925535, decimal:4); " ";
ceil(-3.1415925535, decimal:4); " ";
ceil(-3.99, decimal:1);
}}.
return
res={"x1":[5.5,-5.5,3.15,-3.99],"y1":2.72}3.15
[5.5,-5.5,3.15,-3.99]
[[6,-5],[4,-3]] [5.5,-5.5,3.15,-3.99]
[6,-5,4,-3] [5.5,-5.5,3.1416,-3.99]
6 -5 3.1416 -3.1415 -3.9
Pierre Laplante laplante@plcb.ca