ANS85 The SUM Function

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

Argument Type Function Type
All arguments integer Integer
Numeric Numeric
(some arguments may be integer)
General Format
Arguments
  1. 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 in floating-point format.