|
|
| No such thing as a small change | |
| PerlMonks |
Re^2: Is this odd behavior a floating point problem?by Anonymous Monk |
| on Mar 24, 2012 at 00:47 UTC ( #961339=note: print w/ replies, xml ) | Need Help?? |
|
:D Looks like two separate off-by-one error (OBOE) errors to me :) First you start with non-zero and add 40 times (one too many), then you start with non-zero and add 41 times (one too many twice). If you start with non-zero you need to add only 39 times, or start with zero and add 40 times :) In short
It didn't dawn on me to check wickedjesters (or your) math until ww raised the quesiton
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||