average: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(Redirecting to Macros:Functions:avg)
 
No edit summary
Line 1: Line 1:
#REDIRECT [[Macros:Functions:avg]]
{{stub}}
{{MacroFunction
|name=avg
 
|usage=
<source lang="mtmacro" line>
[h: av = avg(num, num, ...)]
[h: av = average(num, num, ...)]
[h: av = mean(num, num, ...)]
</source>
 
|example=
<source lang="mtmacro" line>
[r: avg(1, 2, 3, 3, 10)]
</source>
Returns 3.8
}}
[[Category:Mathematical Function]]

Revision as of 22:57, 6 March 2009

 This article is a stub, you can help the RPTools Wiki project by contributing content to expand this article.

avg() Function

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