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

Replies are listed 'Best First'. | |
---|---|

Re^6: How can I calculate the right combination of postage stamps?
by tilly (Archbishop) on Dec 02, 2008 at 03:24 UTC | |

Re^6: How can I calculate the right combination of postage stamps?
by repellent (Priest) on Dec 01, 2008 at 18:11 UTC |

In Section
Seekers of Perl Wisdom

Comment onRe^5: How can I calculate the right combination of postage stamps?DownloadCode