in reply to Re^4: How can I calculate the right combination of postage stamps?

in thread How can I calculate the right combination of postage stamps?

This issue is caused by binary floating point. But, it is an artifact of any floating point notation. For example,

1/3 + 1/3 + 1/3 != 1

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