macros:Functions:avg: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
No edit summary
m (Conversion script moved page Macros:Functions:avg to macros:Functions:avg: Converting page titles to lowercase)
 
(3 intermediate revisions by 2 users not shown)
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.
 
===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

Latest revision as of 23:59, 9 February 2023

Redirect to: