Mathematics

These documentation pages are no longer maintained. Please visit the new documentation site.

The following table contains a list of template operators related to mathematics/arithmetics. Click on the name of an operator for more information about that specific operator (usage, parameters, description, examplets, etc.).

Operator Description
absReturns positive value of either the input or the first param...
ceilReturns the next highest integer value of input or parameter.
decReturns input or parameter decremented by one.
divDivides input or first parameter by remaining parameters.
floorReturns the next lowest integer value by rounding down input...
incIncrements either the input or the first parameter with one.
maxReturns the largest value of all parameters.
minReturns the smallest value of all parameters.
modReturns the modulo of two parameters.
mulMultiplies all parameters and returns the result.
roundReturns the rounded value of input value.
subSubtracts all remaining parameters from the first parameter.
sumReturns the sum of all parameters.

Comments

Combining operators

How can you combine different operators? For instance if you both want to multiply and round a value.

Contents

Reference

Database diagram
Template operators
    PDF
    Arrays
    Data extraction
    Formatting
    Images
    Logic
    Mathematics
       abs
       ceil
       dec
       div
       floor
       inc
       max
       min
       mod
       mul
       round
       sub
       sum
    Miscellaneous
    Strings
    URLs
    Variables
Template functions
Data fetching
Modules
XML tags


Created

05/02/2004
10:22:10 am
by Balazs Halasy

Last updated

05/02/2004
3:58:16 pm
by Balazs Halasy

Authors

Balazs Halasy



This page is part of the eZ Publish documentation. The documentation is available under the GNU Free Documentation License. All contributions will be released under the terms of this license.