Skip to main content

Function: times()

times(this, left, right): NumberT

Return the product of the input number and the argument number. If either the input or argument are not a number, they will be convert to a number. If that conversion fails, 0 is 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.

right: unknown

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

Returns

NumberT

The product of the input number and the argument number

Defined in

src/builtin/filters/math.ts:248