>>10943015Keep the remainder running and continuously divide it by shifting the position of the result such that you always get an integer. eg. 1 / 7 = 0 rem 1.
Thus we start with 0. ...
Now 1 * 10 = 10 so we are now on first decimal place, division yields 1 rem 3. We now have 0.1 ...
Repeat, 3 * 10 = 30 for second decimal place. Division yields 30 / 7 = 4 rem 2. Thus we have 0.14 ... keep going until it terminates or a pattern forms.