Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^2: Get average value of array of numbers

by swampyankee (Parson)
on Oct 15, 2009 at 19:49 UTC ( #801422=note: print w/replies, xml ) Need Help??


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

  • Comment on Re^2: Get average value of array of numbers

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://801422]
help
Chatterbox?
[sierpinski]: What does this do? my $j = $#$list;
[sierpinski]: I've never seen $#$var before.
[LanX]: $list cops be an array ref
[LanX]: could
[LanX]: $#array gives the length
[LanX]: no sorry ...
[sierpinski]: so that would just be deferencing it...

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (10)
As of 2017-12-13 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (369 votes). Check out past polls.

    Notices?