Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: HOW to calculate the column databy ikegami (Patriarch) |
on Dec 03, 2009 at 21:26 UTC ( [id://810956]=note: print w/replies, xml ) | Need Help?? |
The difference is that I divided each value *before* summing them for extra precision. But I'll grant you that it's surely not needed here. Storing them in an array is also useful if you want to perform more than one operation, especially if the operation requires all the elements (like finding the median). By the way,
In Section
Seekers of Perl Wisdom
|
|