RPTools

From MapToolDoc
(Redirected from avg)

average

avg() Function

The avg() function calculates the average (or mean) of all of the numbers that are passed in. The mean is equal to the sum of all the arguments divided by the number of arguments.

Usage

  1. [h: av = avg(num, num, ...)]
  2. [h: av = average(num, num, ...)]
  3. [h: av = mean(num, num, ...)]

Example

  1. [r: avg(1, 2, 3, 3, 10)]

Returns 3.8