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.
NOTE: the input always use the '.' as decimalseparator. The output use the decimalseparator of the current language
Name | Mandatory | Description |
---|---|---|
Expression | Yes | The expression to evaluate. The tags in the expression are always evaluated before the expression is calculated |
<#var name=MyNumber Value=100> <#var name=MyNumber> mod 10 = <#calc expression="<#var name=MyNumber> mod 10">
The above example will output:
100 mod 10 = 10