Average

Returns the average of a list of numbers.

Syntax:

Average( list )

Parameters:

(f) list: comma delimited floating point numbers to be averaged.

Returns:

(f)  the average of the numbers.

 

Use this function to compute the mean average of a series of numbers, delimited by commas. It adds the numbers provided as parameters, and then divides by the number of parameters. This function returns a floating point value.

Note: The Average function use floating point numbers internally. Since numbers larger than 9,007,199,254,740,991 or less than -9,007,199,254,740,991 cannot be represented in the floating point format without loss of precision this  functions may produce inaccurate results with very large or very small 64-bit integers.

Example:

avg = Average(1.7, 2.6, 3, 4, 5, 6, 7, 8, 9, 10.6, 11, 12)
Message("The average is", avg)
See Also:

Abs, Fabs, Max, Min, Random