The Ins and Outs of Solving Quadratic Equations with Floating-Point Arithmetic