This is the documentation for the development version.
There are no official binaries for it; build it from the source code in git.
Download links on these pages work only after the release.
For the current release, see version 7.0.
Math::Average
- Math::Average(x, y, …): number
-
Calculate average value from given numbers or array(s) of numbers.
x, y, … |
number, Array |
Comma separated numbers or array(s) of numbers |
Return
Average value.
println(Math::Average([2, 2, 4, 4, 14])); // Will print "5.2"
println(Math::Average(1,2,[3,4])); // Will print "2.5"