SUM
The SUM function returns the sum of its arguments.
Syntax 1
function sum (arg-1[, arg2 ...,arg-n])
Syntax 2
$sum (arg-1[, arg2 ...,arg-n])
Arguments
arg-1 can be either a numeric data item or literal. Other arguments, if any, must be of the same type.
Result
The function returns a number value that is the sum of the passed arguments.
Examples
Example - Display the result of 1+2+3.
display function sum(1, 2, 3)