PROCESIO
OverviewPlatform ActionsIntegrations & DemosMarketplaceCustom ActionsDeveloperโ€™s Guide

Arithmetic Mean

Returns the average (arithmetic mean) of the numbers in a list.

The Arithmetic Mean action returns the average of the numbers in a list: their sum divided by how many there are.

Add the action

In the Process Designer toolbox, open List, then Numeric, and pick Arithmetic Mean (or type Arithmetic Mean in the search box).

The Arithmetic Mean action properties: Input a list of numbers and Result

Inputs and outputs

FieldDirectionTypeRequiredWhat to put / what you get
Input a list of numbersInputList of numbersYesThe numbers to average, for example [2,4,6].
ResultOutputNumberYesThe average. A whole number when the average is whole, otherwise a decimal number.

Example

Input a list of numbersResult
[2,4,6]4
[1,2]1.5
[1,2,2]1.6666666666666667 (not rounded)
[] (empty list)NaN โ€” the step does not fail

Good to know

  • The result is not rounded. Use Round afterwards if you need a fixed number of decimals.
  • An empty list does not fail the step: Result is NaN ("not a number"). If the list can be empty, check it first with Has Elements or Length.
  • Numbers stored as text ("3") are accepted; any other text makes the step fail with The input was not a number. Please try again.

On this page