Skip to main content

Function: atLeast()

atLeast(this, left, arg): NumberT

Return the maximum of the filter's input value and its argument. If either input value or argument are string representations of an integer or float, they will be cast to an integer or float prior to comparison.

If either input value or argument can not be cast to an integer or float, 0 will be used instead.

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.

arg: unknown

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

Returns

NumberT

The maximum of the input value and the argument value.

Defined in

src/builtin/filters/math.ts:37