SUM

SUM returns the sum of all the elements in x. The base, mode, and scale of the result match those of x.

Read syntax diagramSkip visual syntax diagramSUM( x)
x
Array expression. If the elements of x are strings, they are converted to fixed-point integer values.

If the elements of x are fixed-point, the precision of the result is (N,q), where N is the maximum number of digits allowed, and q is the scaling factor of x.

If the elements of x are floating-point, the precision of the result matches x.