Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Your method can exhibit what numerical analysts call "catastrophic cancellation" because you're subtracting two terms that potentially agree to several figures. See an illustration of what could go wrong here: johndcook.com/blog/2008/09/26/…