eval. Evaluating mathematical expressions

^eval(expression)  
^eval(
expression)[format string]   

Operator
eval evaluates a mathematical expression and outputs the result in the format you specify-with appropriate format string (see "Format strings").

Example
^eval(100/6)[%.2f]
will return: 16.67.

Important notice: we do recommend that you add comments to parts of complex mathematical expressions (See "Adding comments to parts of expressions").


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 01.04.2004