Difference between revisions of "Template:Average/doc"

From blackwiki
Jump to navigation Jump to search
imported>BrandonXLF
imported>Alex 21
 
(14 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{lua|Module:Average}}
+
{{documentation subpage}}
This template is used to find the mean of a series of numbers.
+
{{lua|Module:Math}}
 +
This template is used to find the average (default mean) of a series of numbers.
  
Parameters 1,2,3... are the numbers to find the average of.
+
==Parameters==
 +
Parameters with a number as the value are the numbers to find the average of.
  
Example: {{Average|10|20|30|40}} (<nowiki>{{Average|10|20|30|40}}</nowiki>)
+
==Examples==
 +
<nowiki>{{Average|10|20|30|40|100000000}}</nowiki> {{Average|10|20|30|40|100000000}}
  
Example: {{Average|type=median|10|20|30|40}} (<nowiki>{{Average|10|20|30|40}}</nowiki>)
+
<nowiki>{{Average|10|20|30|40|50|100000000}}</nowiki> → {{Average|10|20|30|40|50|100000000}}
 +
 
 +
<nowiki>{{Average|10|20|30|40|50|100000000|round=2}}</nowiki> → {{Average|10|20|30|40|50|100000000|round=2}}
 +
 
 +
==See also==
 +
*{{tl|Median}}

Latest revision as of 15:28, 13 October 2020

This template is used to find the average (default mean) of a series of numbers.

Parameters

Parameters with a number as the value are the numbers to find the average of.

Examples

{{Average|10|20|30|40|100000000}} → 20000020

{{Average|10|20|30|40|50|100000000}} → 16666691.666667

{{Average|10|20|30|40|50|100000000|round=2}} → Template:Round

See also