mul

Summary

Multiplies all parameters and returns the result.

Usage

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

Parameters

NameTypeDescriptionRequired
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".

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.