math : divide
DESCRIPTION
<divide> divides a user variable by the given value. The first value encountered by <divide>, starting with the attribute and then traversing any sub-modules depth first, will be the initial value for the division. All other values are divided in order. <block> may be used to define order of operation.
Note that if <divide> is used with a variable which is a string, the number format will be applied to the variable first. If the variable has no numeric content, this will result in a value of 0. Best practice is to use the number format with the <set> module when setting variables intended to be numeric.
PARAMETERS
var - which variable to operate on
value - the value to divide by
float - (true|false) whether to store decimal values. True by default. Decimals are always restricted to two places.
EXAMPLES
<divide var="assets" value="2" />
...