/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.

This file is released under the LGPL "GNU Lesser General Public License" More information can be found here: http://www.gnu.org/copyleft/lesser.html

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

Documentation generated on Sun, 03 Aug 2008 15:12:42 +0200 by phpDocumentor 1.4.0