good chemistry is complicated, and a little bit messy LW 

PerlMonks 
comment on 
( #3333=superdoc: print w/replies, xml )  Need Help?? 
My method, first builds an approximation of the solution of a/b as...
a / 2 is done using the bugfree shiftright operator (>>) and results always in a number with bit 64 unset, so we can divide it by b without incurring in the converttoNV bug. Again multiplying by 2 is done with the shiftleft operator (<<). Then, we use the approximation to build the exact solution as:
Well, actually, in order to do everything using bugfree operations, the code uses the following equivalence: where $d is s2, and $e is (a  (s2 * b) * 2). In reply to Re^3: 64bit division anomolies (Solved.)
by salva

