in reply to Get average value of array of numbers
From the below link you'll get some code samples/comments: