macros:Functions:avg: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
(Redirecting to average)
Line 1: Line 1:
==Function avg==
#REDIRECT [[average]]
Adds all the NPC tokens on the current map to the initiative panel. This function returns the number of tokens that were added to the initiative panel.
[[Category:Macro Function]]
 
[[Category:Mathematical Function]]
===Usage===
<source lang="mtmacro" line>
[h: av = avg(num, num, ...)]
[h: av = average(num, num, ...)]
[h: av = mean(num, num, ...)]
</source>
 
===Examples===
<source lang="mtmacro" line>
[r: avg(1, 2, 3, 3, 10)]
</source>
Returns 3.8

Revision as of 22:59, 6 March 2009

Redirect to: