Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.



Excerpt
hiddentrue

sum(list) Returns the sum of a set of numbers.


Function: sum()

Returns the sum of a set of numbers.

...

ArgumentTypeDescription
listNumber ArrayAn Array containing a list of numeric values

Examples

sum([10, 2, 3, 3.3])

Returns the sum of the numbers in list above i.e. 10 + 2 + 3 + 3.3 = 18.3


sum(in.invoiceAmount)

Returns the sum of all invoiceAmount that are returned by pipe in. E.g. if this expression were on an Aggregating Stream aggregating table the sum would be over all invoices which matched the Pipe Grouping criteriapipe grouping criteria; see Pipe properties, Sort/Group section.

See Also