<div dir="ltr">I would direct you to Knuth, "The Art of Computer Programming", Volume II. <div>Floating point is harder to do in computers than you would intuitively expect it to be. There are a </div><div>bunch of strange edge cases, even when you are not running on a<a href="http://en.wikipedia.org/wiki/Pentium_FDIV_bug"> Pentium</a>. </div></div>