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. The tags in the expression are always evaluated before the expression is calculated

Example

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