We're dividing 166704 by 9 
Let's see how many times 9 fits into 166704.

On to step 1:
9 goes into 1 0 times with a remainder of 1.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 1, we get 1.
Append the next digit (6) from the dividend to 1 and continue with: 16 / 9

Moving on to step 2:
9 can be fit into 16 1 times, resulting in a remainder of 7.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
The remainder is 7 after subtracting 9 from 16.
Fetch the next digit (6) from the dividend, attach it to 7 and continue: 76 / 9

Going ahead to step 3:
9 goes into 76 8 times with a remainder of 4.
Write down 8 as next digit of the result. 
Result so far: 18.0
If we take 72 away from 76, we end up with 4.
Take the next digit (7) from the dividend and append it to 4, then repeat: 47 / 9

Step 4:
The number 9 fits into 47 5 times, leaving a remainder of 2.
The number 5 becomes the next digit in our result. 
Result so far: 185.0
Subtract 45 from 47 to get 2.
Take the next digit (0) from the dividend and append it to 2, then repeat: 20 / 9

On to step 5:
9 can be fit into 20 2 times, resulting in a remainder of 2.
Put 2 as the next digit of the answer. 
Result so far: 1852.0
If we take 18 away from 20, we end up with 2.
Fetch the next digit (4) from the dividend, attach it to 2 and continue: 24 / 9

Advancing to step 6:
The number 9 fits into 24 2 times, leaving a remainder of 6.
Write down 2 as next digit of the result. 
Result so far: 18522.0
Deduct 18 from 24 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 7:
9 can be fit into 60 6 times, resulting in a remainder of 6.
The next digit of our result is 6. 
Result so far: 18522.6
The remainder is 6 after subtracting 54 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Going ahead to step 8:
60 divided by 9 is 6 with a remainder of 6.
Write down 6 as next digit of the result. 
Result so far: 18522.66
Deduct 54 from 60 and we're left with 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

After the division, we end up with 18522.66 and a remainder of 0.006.