I'm currently writing a program that checks for the multiplicity of a number by a factor of 10. However, this program is violated by what I assume is a double-precision error in python. I have attached an example below.
# correct representation in line with expectation
>> 71885 / 71.885 = 1000.0
# this fails, when we should be reporting 10^6 (1000000)
>> 310888679 / 310.888679 = 999999.99999999