P is for Practical | |
PerlMonks |
Re^3: sprintf rounding conventionby kennethk (Abbot) |
on Oct 30, 2009 at 22:24 UTC ( [id://804228]=note: print w/replies, xml ) | Need Help?? |
Now I'm confused:
and
Am I missing something (as usual)? Update: Following ikegami's suggestion, I tried increasing the precision to 40 digits, and got:
It looks like this variation is just an artifact of 64-bit vs. 32-bit, emphasizing how you should never rely on precise results from rounding.
In Section
Seekers of Perl Wisdom
|
|