Reading your "doesn't work" comment that you made to Devon_C_Miller, I recommend you the best paper ever on the subject, which is a must read: "What Every Computer Scientist Should Know About Floating-Point Arithmetic" (and, yup, it's still hosted at Sun ;) docs.sun.com/source/806-3568/ncg_goldberg.html
–
SyntaxT3rr0rNov 3 '10 at 16:26