Weresloth was kind enough to point out that it is multiply by zero, and not divide by.
I had forgotten that I use a separate equation to calculate backwards, which uses division. It gives the same results, but a different response when 10,000 is calculated.
Seeing as multiplying by zero is possible, there should be no error.