Average

logic · C077 · starter-package 7.0.1

Calculates the arithmetic mean of a non-empty collection of finite numbers.

Input

  • Values (list, required): A list containing at least one finite number. Text such as 1,2,3 is not treated as a collection.

Output

  • Result (number): Sum of the values divided by their count.

Common uses

Average response times, prices, scores, sensor readings, daily totals, or any numeric series.

Example

Values [2, 4, 9] produce 5.

Errors and recovery

When this block reports an error, no downstream output is emitted. Correct the highlighted input or setting described by the message, then run the workflow again.

Non-arrays, empty arrays, invalid elements, NaN, infinities, and non-finite aggregate results stop the workflow.

Connector data types

The type below is the data type that actually travels through the connection. Any additional validation is described separately in this block guide.

DirectionConnectorTypeRequired
Inputvalues — Valueslistyes
Outputresult — Resultnumberon success