http://www.perlmonks.org?node_id=801422


in reply to Re: Get average value of array of numbers
in thread Get average value of array of numbers

…although to be a bit more rigorous you should divide by the number of defined elements, and check to ensure that there is at least one (defined) element in the array.


Information about American English usage here and here. Floating point issues? Please read this before posting. — emc