Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re^3: Is this odd behavior a floating point problem?

by ww (Bishop)
on Mar 24, 2012 at 00:29 UTC ( #961337=note: print w/ replies, xml ) Need Help??


in reply to Re^2: Is this odd behavior a floating point problem?
in thread Is this odd behavior a floating point problem?

If I were doing it with a calculator, I'd surely end up with too many or too few entries of 0.001. I might mess it up building an array. Are you sure you have the right number of elements?

You can check easily enough:

say scalar(@arr); # 40 say $#arr; # 39


Comment on Re^3: Is this odd behavior a floating point problem?
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://961337]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (9)
As of 2014-09-21 14:31 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (172 votes), past polls