SUM Function

The SUM function returns a value that is the sum of the arguments. The type of this function depends upon the argument type as follows:

Argument Type Function Type
All arguments integer Integer
Numeric (some arguments may be integer) Numeric

Usage

FUNCTION SUM ({argument-1} ... )

Parameter

argument-1 Must be class numeric.

Returned Values

  1. The returned value is the sum of the arguments.
  2. If the argument-1 series are all integers, the value returned is an integer.
  3. If the argument-1 series are not all integers, a numeric value is returned.