Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Function: average()

Returns the average of a set of numbers.

Syntax

average(list)

Argument Type Description
list Number Array An 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

  • No labels