Skip to main content

Function: ceil()

ceil(this, left): NumberT

Round the input value up to the nearest whole number. The input value will be converted to a number if it is not an integer or float.

Parameters

this: FilterContext

An object containing a reference to the active render context and any keyword/named arguments.

left: unknown

Any value. If it can't be converted to a number, zero will be used instead.

Returns

NumberT

The input value rounded up to the nearest whole number.

Defined in

src/builtin/filters/math.ts:81