|
|
| Pathologically Eclectic Rubbish Lister | |
| PerlMonks |
Re: Is this odd behavior a floating point problem?by roboticus (Canon) |
| on Mar 23, 2012 at 17:25 UTC ( #961269=note: print w/ replies, xml ) | Need Help?? |
|
You don't show your code, but I'm pretty sure you're not doing what you think you're doing. Specifically, I believe you're adding 41 copies of 0.001, as that's the only way I can reproduce your results:
...roboticus When your only tool is a hammer, all problems look like your thumb.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||