in reply to An arithmetic oddity
It's a problem of integer arithmetic and changing bases: http://docs.sun.com/source/806-3568/ncg_goldberg.html for the details. For a quick idea, try this:
$ perl -e 'printf "%.20f\n",(0.3-0.1)*10' 1.99999999999999977796
|
|---|