Function reference · Math

ceil

Rounds a number up to the nearest integer.

For a symbol, the call is returned unevaluated. ceiling is another name for it.

Notation

ceil(x)

Write it in an expression: nerdamer('ceil(3.2)'), or in the Playground.

nerdamer.ceil

nerdamer.ceil(x: ExpressionInput): Expression

A method on the default import. Arguments can be strings, as in Notation.

Examples

Up, for a positive number.

ceil(3.2)
// → 4
Open in Playground

Up is toward zero for a negative number.

ceil(-2.7)
// → -2
Open in Playground

The other name.

ceiling(2.1)
// → 3
Open in Playground

Also called

ceiling

← Back to Function reference