MX Calculator provides mathematical operations in ExpressionEngine 2 templates.
MX Calc is build with modified class EvalMath (thanks to Miles Kaufmann) for safely evaluate math expressions.
Requirements
- ExpressionEngine 2
Example
you can used it as single tag
<pre><code>{exp:mx_calc expression="-4(15/42)^23*(4-sqrt(16))-15"}</code></pre>
or as tag pair
<pre><code>{exp:mx_calc expression="-4(15/42)^23*(4-sqrt(16))-15"}
Cost = {calc_result}
{/exp:mx_calc}</code></pre>
is this code works?
[ Test it NOW! ]