sum() Function

Returns the sum of the specified numbers. Returns an integer if all parameters are integers.

Syntax

sum( addend, … )

addend: (Decimal Array) A number or array of numbers that will be added into the final sum.

Returns

Decimal

Notes

If the addend values are integers, the function will return an integer.

Examples

You can experiment with this function in the test box below.

Test Input

sum(1,2,3,4) returns 10

FEEDBACK