How do you convert $(12.0251)_6$ (in base 6) into fractions?
I know how to convert a fraction into base $x$ by constantly multiplying the fraction by $x$ and simplifying, but I'm not sure how to go the other way?
How do you convert $(12.0251)_6$ (in base 6) into fractions?
I know how to convert a fraction into base $x$ by constantly multiplying the fraction by $x$ and simplifying, but I'm not sure how to go the other way?
I assume you want decimal notation in your fraction. We have $$(12.0251)_6=(1\times 6^1) + (2\times 6^0) +\frac{0}{6^1}+\frac{2}{6^2}+\frac{5}{6^3}+\frac{1}{6^4}.$$
Bring the right-hand side to the common denominator $6^4$, and calculate. Equivalently, multiply by $6$ often enough that you get an integer $N$ ($4$ times) and divide by that power of $6$. After a while, we get that $N=10471$. Since $6^4=1296$, $$(12.0251)_6=\frac{10471}{1296}.$$
Another way: Note that $(12.0251)_6=\dfrac{(120251)_6}{(10000)_6}$. Convert numerator and denominator to base $10$. This looks slicker, but the computational details are the same.
Comment: There is a nice trick for making the calculation of the numerator easier. It goes back almost two thousand years in China, and is sometimes called Horner's Method, after an early 19th century British schoolmaster. We work from the left. Calculate in turn
$(1\times 6)+2=a$
$(a\times 6)+0=b$
$(b\times 6)+2=c$
$(c\times 6)+5=d$
$(d\times 6)+1=e$
Our numerator is $e$. We find that $e=10471$.
Horner's Method does not really speed up things in this small calculation. But with longer calculations, there is substantial gain. Horner's Method is a useful tool when we want to evaluate a high degree polynomial $P(x)=a_0x^n+a_1x^{n-1}+ \cdots +a_n$ at a particular numerical value of $x$. With a bit of practice, it is even a handy tool for evaluation of polynomials with a calculator. There is no need to ever "store" intermediate results.