Functions

average

Supported By

Syntax

[the] average of factor

average ( expression )

Factor and expression yield lists of integers, numbers, or complexes.

Example

put average(1,3,4) into bill

Description

The average function returns the arithmetic mean, or average, of the numeric values passed to it. This is equal to the sum of the passed values divided by the number of values.

If all the values are integers or numbers, a number is returned. If any value is a complex, a complex is returned.