Syntax
average(array)
Description
TheĀ average() method calculates and returns the average (mean) of the given data set.
Example
include("math")
println(average([1, 3, 5, 7, 9, 11, 13]))
println(average([1, 3, 5, 7, 9, 11]))
println(average([-11, 5.5, -3.4, 7.1, -9, 22]))
7
6
1.8666666666666665