Function reference · Math

ceil

Rounds a numeric expression up to the nearest integer.

Numeric inputs return the least integer greater than or equal to the value. Symbolic inputs remain as ceil(x).

The compatibility spelling ceiling is an alias of ceil.

Examples

These examples use Nerdamer Notation.

Round a positive decimal upward.

ceil(3.2)
// → 4

Round a negative decimal toward positive infinity.

ceil(-2.7)
// → -2

Interfaces

The same operation is available through the interfaces below.

Nerdamer Notation · nerdamer API

Nerdamer Notation

Use this form inside input passed to nerdamer(...).

ceil(arg1)

nerdamer.ceil

Call the operation through the default nerdamer import.

nerdamer.ceil(x: ExpressionInput): Expression

Parameters

NameTypeDescription
xExpressionInputThe expression to round up.

Returns

Expression — The least integer greater than or equal to `x`.

Browse the nerdamer API →

Aliases

ceiling

← Back to Reference