I am totally confused when it comes to converting fractions or floating point numbers to a different base. I have no problem converting whole numbers to any base but when it comes to fractions or decimals I'm stumped. I got this question on an assignment in a math for programmers class and the book does not cover the subject, any help will be appreciated and perhaps even reciprocated some day.
Question:1. Convert 1/7 in base 10 to a quad fraction in base 4. A quad fraction is the equivalent of a decimal fraction in base 4. The fraction may be a terminating or a non-termination fraction.
Not the standard method but anyways: $$1/7=0.142857\cdots$$ Repedetly multiply by 4 ans see the integral part: $$\begin{array}{c|c} 4\times0.142857\equiv0.571428&0\\\hline 4\times0.571428\equiv2.285714&2\\\hline 4\times0.285714\equiv1.142857&1\\\hline 4\times0.142857\equiv0.571428&0\\\hline \cdots&\cdots \end{array}$$ So $$(1/7)_{10}=(0.021021\cdots)_{4}$$