[Math] How to find a whole number multiple of a decimal

arithmeticdecimal-expansionelementary-number-theory

I want a way to find the smallest whole number multiple of a decimal.

For example:

$1.5 \to 1.5 \times 2 = 3$

$0.5 \to 0.5 \times 2 = 1$

$0.4 \to 2$

$0.15 \to 3$

$0.14 \to 7$

$0.25 \to 1$

$0.17264382 \to ???$

Ideally this would be something that can be done by hand easily, not by a computer recursively.

Best Answer

Begin with the fraction $$\frac{m}{10^n}$$ which can be easily determined and divide numerator and denominator by $2$ or $5$ as long as this can be done without a residue. Then, the denominator of the final fraction is the solution.

Related Question