I should have mentioned that this specific test also fails without the sprintf. (And for these values the divisions should yield whole number results.) Also, for my application there will be floating-point numbers as part of the input so it would be hard to eliminate them in this calculation