Sum
  • 27 May 2022
  • 1 Minute to read
  • Dark
    Light
  • PDF

Sum

  • Dark
    Light
  • PDF

Article Summary

Given an array of numbers, calculates their sum. If the array is empty, returns 0.

Function signature

SUM(values: Array) => Number
ParameterDescription
ValuesArray of numeric values

Examples

FormulaReturn value
SUM([10, 20, 30])60
SUM([])0

Was this article helpful?

What's Next