Versions Compared

Key

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



Excerpt
hiddentrue

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


Function: average()

Returns the average of a set of numbers.

...

ArgumentTypeDescription
listNumber ArrayAn Array containing a list of numeric values

Examples

average([10, 2, 3, 3.3, 4, 5.6])

Returns the average of the numbers in above i.e. (10 + 2 + 3 + 3.3 + 4 + 5.6) / 6 = 4/65


average(in.invoiceAmount)

Returns the average of all invoiceAmount that are returned by pipe in. E.g. if this this expression were on an Aggregating Stream the average would be over all invoices which matched the Pipe Grouping criteria.

See Also