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
In reply to Re: An arithmetic oddity
by bv
in thread An arithmetic oddity
by jxb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |