average

From RPTools Wiki
Revision as of 07:25, 6 March 2019 by Azhrei (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

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)]
Returns 3.8