User Tools

Site Tools


en:public:developer:template_system:tags:expression:calc

This is an old revision of the document!


Table of Contents

<#Calc>

A parser, compiler and interpreter for mathematical expressions. It can handle normal arithmetics (includings powers wit ^) and builtin functions like sin(). Multiplication *, division / and modulo mod have the same precedence, and are evaluated left to right.

Parameters

Name Mandatory Description
expression Yes The expression to evaluate

Example

<#url_PageNumber> mod 10 = <#calc expression="<#url_PageNumber> mod 10">
en/public/developer/template_system/tags/expression/calc.1353309931.txt.gz · Last modified: 2012/11/19 11:25 by admin