WTF ?

Matt Wilson codebrewery at gmail.com
Wed Jan 10 12:54:35 GMT 2007


On 1/10/07, Paul Orrock <paulo at digitalcraftsmen.net> wrote:
> I've tried this on a couple of machines running perl 5.8.6 and 5.8.8
>
> Can anyone explain why this is ? I get the correct (in my eyes) 1dp /
> 2dp result with 0.04 and 0.06 but 0.05 ends up to 14dp ?

* mumbles something about floating point accuracy and inability to
accurately represent all decimal fractions *

http://en.wikipedia.org/wiki/Floating_Point#Accuracy_problems


More information about the london.pm mailing list