Back to functions

ceil


ceiling

Returns the ceiling of a number. Maps directly to Math.ceil(x) if numeric.

Usage: nerdamer("ceil(x)")


Parameters

expression x Returns the appropriate value if possible otherwise it returns the function with the simplified expression

Returns

Expression

EXAMPLES:
var x = nerdamer('ceil(5/2)').evaluate();
console.log(x.toString());
OUTPUT:
Back to functions