macros:Functions:mean

From RPTools Wiki
Revision as of 11:35, 13 December 2008 by Craig (talk | contribs) (New page: ==Function mean== Returns the average(mean) of the numbers that are passed in. ===Usage=== <source lang="mtmacro" line> [h: av = avg(num, num, ...)] [h: av = avgera...)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Function mean

Returns the average(mean) of the numbers that are passed in.

Usage

[h: av = avg(num, num, ...)]
[h: av = avgerage(num, num, ...)]
[h: av = mean(num, num, ...)]


Examples

    [r: avg(1, 2, 3, 3, 10)]

Returns

   3.8