Lets say $r$ is a real number and $I_1, I_2$ are integers. I want this, $$r*I_1=I_2$$ This is not possible all the time so, I allow to add an epsilon $\epsilon$ to the real number such that $$(r+\epsilon)*I_1 = I_2$$ What is the smallest value of $\vert\epsilon\vert$ ? For example: $r = 0.31, I_1 = 30 \therefore \epsilon = -0.01, I_2 = 9$
I can solve the problem numerically. That is, I consider only two decimal precision and search for the smallest $\epsilon$.
As in the example, I round lets say $r=0.3111$ to $r=0.31$ and multiply it by $I_1$ if the result is an integer I stop or $r := r \pm 0.01$ then do the previous steps.
$ I_1 \in \{24, 25, 30, 48, 50, 60\}$ and $r$ is given. We are seeking for smallest $\vert\epsilon\vert$ and $I_2$ is the output. Any $I_2 \ge 0$ is acceptable.