div

Summary

Divides input or first parameter by the remaining parameters.

Usage

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

Parameters

NameTypeDescriptionRequired
value1 number Dividend or divisor. Yes.
value2 number Dividend. Only if the input parameter is omitted.

Returns

The result of the division.

Description

This operator divides a the first parameter (can be the input parameter) by the rest of the parameters.

Examples

Example 1

{10|div( 5 )}

or

{div( 10, 5 )}

The following output will be produced: "2".

Example 2

{12|div( 3, 2 )}

or

{div( 12, 3, 2 )}

The following output will be produced: "2".

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