This is a well-known deficiency of floating-point numbers.
You can think of binary floating-point as fractions with power-of-two denominators. Even a simple number such as 0.1
cannot be accurately represented as binary floating-point, and every division by a power of ten is by nature inaccurate.
If you need accurate division with arbitrary denominators in Python, use Decimal
(which simulates pencil-and-paper decimals) or Fraction
(which simulates pencil-and-paper fractions).