/plugins/builtin/functions/math.php

Description

Computes a mathematical equation

  * equation : the equation to compute, it can include normal variables with $foo or special math variables without the dollar sign
  * format : output format, see http://php.net/sprintf for details
  * assign : if set, the output is assigned into the given variable name instead of being output
  * rest : all math specific variables that you use must be defined, see the example
Example :

  1.  {$c=2}
  2.  {math "(a+b)*$c/4a=b=5}
  3.  
  4.  output is (3+5)*2/4)

This software is provided 'as-is', without any express or implied warranty. In no event will the authors be held liable for any damages arising from the use of this software.

Functions
Dwoo_Plugin_math_compile (line 31)
void Dwoo_Plugin_math_compile (Dwoo_Compiler $compiler,  $equation, [ $format = ''], [ $assign = ''], [ $rest = array()])

Documentation generated on Sat, 18 Jul 2009 21:05:14 +0200 by phpDocumentor 1.4.0