SUMMATION

SUMMATION


SUM Index Level SWAP
Syntax SUMMATION( string.expression )
Category BASIC
Type Function
Description returns the sum of a list of numbers delimited by attribute, value, or subvalue marks.  If different orders of marks are present, the "summation" function will add the contents of all fields regardless of delimiter.
Options
See Also $OPTIONS
Example $options ext
equ am to char(254)
print summation(3:am:3.2)

The result, "6.2", will be printed to the terminal.
Warnings It is necessary to use a non-default option setting to use this function. Inserting the line "$options ext" at the beginning of the source item accomplishes this.
Compatibility D3 7.0 R91
SUM Index Level SWAP