Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

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

Balazs Halasy (05/02/2004 10:48 am)

Balazs Halasy (04/05/2005 2:18 pm)


Comments

There are no comments.