Skip to main content

Function: floor()

floor(this, left): NumberT

Round the input value down 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 down to the nearest whole number.

Defined in

src/builtin/filters/math.ts:121