![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^5: How can I calculate the right combination of postage stamps?by gwadej (Chaplain) |
on Nov 28, 2008 at 19:27 UTC ( #726654=note: print w/replies, xml ) | Need Help?? |
This issue is caused by binary floating point. But, it is an artifact of any floating point notation. For example,
for any finite number of digits using decimal representations. Given any base, there will be some fractions that cannot be properly represented and would therefore cause this problem. (At least until such time as we have infinite precision floating point representations.<grin/>)
G. Wade
In Section
Seekers of Perl Wisdom
|
|