Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FUNCky - <b>aaverage() - get the average of all numbers in an array</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
       aaverage() - get the average of all numbers in an array
  Usage:    <integer> = aaverage(<array>)
  Params:   array <array>, an array of numbers
  Returns:  the average of all numbers in the array

 ---------------------------------- Example ---------------------------------

                 declare numbers[5]
                 numbers[1] = 2094.00
                 numbers[2] = 2500.56
                 numbers[3] = 19001.44
                 numbers[4] = 8.2
                 numbers[5] = 99.15

                 ? aaverage(numbers)
                 * prints 4740.67

  Note:     If an array element is undefined, then it counts as if it
            contained 0.


See Also: atotal() aminn() amaxn() amin() amax()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson