Given a rational, how to find the integers whose quotient it is? I haven't found an answer to this anywhere.
Excluding brute force, given a rational $q$ in its decimal form ($1.47$, for example), is there a good algorithm to find integers $m$ and $n$ such that $\frac m n = q$?
Thank you.

If $q$ is in decimal form well yes, there's the whole "if $q$ is not periodic then it is $q$ without . divided by $10^n$, if it's periodic do this and that" (if you meant this comment and I'll write it all)
