macros:Functions:avg: Difference between revisions

From RPTools Wiki
Jump to navigation Jump to search
(New page: ==Function avg== 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=== <sourc...)
 
m (Conversion script moved page Macros:Functions:avg to macros:Functions:avg: Converting page titles to lowercase)
 
(4 intermediate revisions by 3 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: average = avg(num, num, ...)]
[h: average = average(num, num, ...)]
[h: average = 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: