Skip to the content
Documentation

mul

No ratings yet

Summary

Multiplies all parameters and returns the result.

Usage

input|mul( value1 [, value2] [, ...] )

Parameters

Name Type Description Required
value1 number Multiplicand. Yes.
value2 number Multiplicand. Only if the input parameter is omitted.

Returns

The result of the multiplication (integer or float).

Description

This operator multiplies all parameters and returns the result. If an input parameter is provided, it will be included in the multiplication.

Examples

Example 1
{2|mul( 3 )}

or

{mul( 2, 3 )}

The following output will be produced: "6".

Example 2
{2|mul( 3, 4 )}

The following output will be produced: "24".

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.