average: Difference between revisions
Jump to navigation
Jump to search
Verisimilar (talk | contribs) m (Macros:Functions:average moved to average) |
No edit summary |
||
Line 1: | Line 1: | ||
{{MacroFunction | {{MacroFunction | ||
|name=avg | |name=avg | ||
|description= | |||
The {{code|avg()}} function calculates the average (or mean) of all of the numbers that are passed in. The mean | |||
is equal to the sum of all the arguments divided by the number of arguments. | |||
|usage= | |usage= |
Revision as of 13:15, 25 March 2009
avg() Function
The
avg()
function calculates the average (or mean) of all of the numbers that are passed in. The mean
is equal to the sum of all the arguments divided by the number of arguments.Usage
[h: av = avg(num, num, ...)]
[h: av = average(num, num, ...)]
[h: av = mean(num, num, ...)]
Example
[r: avg(1, 2, 3, 3, 10)]