in reply to Re^2: How can I calculate the right combination of postage stamps?
in thread How can I calculate the right combination of postage stamps?
That's not a bug in Perl. It's an artifact of using floating point numbers. There are many numbers that cannot be represented exactly in floating point.
At a glance, it appears that none of those would be exactly represented in the IEEE floating point formats. (I could be wrong.) So there would be some error in the calculation in any language, on any processor.
G. Wade
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How can I calculate the right combination of postage stamps?
by gone2015 (Deacon) on Nov 28, 2008 at 19:16 UTC | |
by gwadej (Chaplain) on Nov 28, 2008 at 19:27 UTC | |
by tilly (Archbishop) on Dec 02, 2008 at 03:24 UTC | |
by repellent (Priest) on Dec 01, 2008 at 18:11 UTC |
In Section
Seekers of Perl Wisdom