SUMMATION Function
Returns the sum of all elements of a dynamic array.
Syntax
SUMMATION(dyn-array)
Syntax Elements
dyn-array is the name of a dynamic array.
Comments
SUMMATION returns the sum of all numeric elements found in the specified dynamic array. Nonnumeric elements of dyn-array are ignored. Null elements evaluate to zero.
See Also
Examples
-
If dynamic array D contains 4]1]6^4^6]1,
C = SUMMATION(D)
returns the sum (22) of all the numeric elements of dynamic array D.
-
If dynamic array AGES contains 22^34^25^57^54,
A = SUMMATION(AGES)
assigns the value 192 (the sum of all the ages) to variable A.
-
If dynamic array LIST contains SMITH]JOHN^JONES]BILL^JENKINS]SAM,
S = SUMMATION(LIST)
assigns null to S because all nonnumeric values are ignored.