I'm sure there's a better way to express this question, so I apologize if I'm doing a poor job.
If I have a two decimal place number $x$, what are the number of decimal places required for number $r$ to guarantee that $x * r = y$, where $y$ is any two decimal place number (after rounding).
I'm not sure how to prove this, but it seems like the answer to my question is $5$. If that's true, why is it true?
To provide more context, the actual problem is I have two numbers $a$ and $b$ that have at most two decimal places of precision. I want to be able to "store" $c$, where $c = round(b/a, z)$, with fixed precision $z$ such that $round(c * a, 2) = b$.
An example is: \begin{align} a = 101 \\ b = 102 \\ z = 5 \\ c = round(\frac{b}{a}, z) = 1.00990 \\ round(a * c, 2) = round(101.9999, 2) = 102 \end{align}
I've tested a few different numbers and it seems like $5$ is the magic number for $z$ to make this work for two decimal numbers, but I'm not sure why. Anything smaller than 5 does not work reliably.