1038475 divided by 166 
Let's see how many times 166 fits into 1038475.

Going ahead to step 1:
If we divide 1 by 166, we get 0 and a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 1 and we're left with 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 166

Advancing to step 2:
166 goes into 10 0 times with a remainder of 10.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 10 after subtracting 0 from 10.
Append the next digit (3) from the dividend to 10 and continue with: 103 / 166

Advancing to step 3:
When dividing 103 by 166, we get 0 with a remainder of 103.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 103 to get 103.
Fetch the next digit (8) from the dividend, attach it to 103 and continue: 1038 / 166

On to step 4:
1038 divided by 166 is 6 with a remainder of 42.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Deduct 996 from 1038 and we're left with 42.
Append the next digit (4) from the dividend to 42 and continue with: 424 / 166

Step 5:
If we divide 424 by 166, we get 2 and a remainder of 92.
Put 2 as the next digit of the answer. 
Result so far: 62.0
If we take 332 away from 424, we end up with 92.
Bring next digit (7) of the dividend behind the 92 and repeat the process: 927 / 166

On to step 6:
166 can be fit into 927 5 times, resulting in a remainder of 97.
Write down 5 as next digit of the result. 
Result so far: 625.0
If we subtract 830 from 927, we get 97.
Bring next digit (5) of the dividend behind the 97 and repeat the process: 975 / 166

Step 7:
975 divided by 166 is 5 with a remainder of 145.
The next digit of our result is 5. 
Result so far: 6255.0
If we subtract 830 from 975, we get 145.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1450, and continue the process.

Going ahead to step 8:
If we divide 1450 by 166, we get 8 and a remainder of 122.
Write down 8 as next digit of the result. 
Result so far: 6255.8
Subtract 1328 from 1450 to get 122.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1220, and continue the process.

Let's proceed to step 9:
The number 166 fits into 1220 7 times, leaving a remainder of 58.
The number 7 becomes the next digit in our result. 
Result so far: 6255.87
If we subtract 1162 from 1220, we get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Going ahead to step 10:
580 divided by 166 is 3 with a remainder of 82.
Record the quotient 3 as the next digit in the result. 
Result so far: 6255.873
If we subtract 498 from 580, we get 82.
Since there are no more digits in the dividend, we add a zero to the remainder making it 820, and continue the process.

On to step 11:
820 divided by 166 is 4 with a remainder of 156.
The next digit of our result is 4. 
Result so far: 6255.8734
Deduct 664 from 820 and we're left with 156.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1560, and continue the process.

Moving on to step 12:
The number 166 fits into 1560 9 times, leaving a remainder of 66.
Write down 9 as next digit of the result. 
Result so far: 6255.87349
Subtract 1494 from 1560 to get 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Going ahead to step 13:
660 divided by 166 is 3 with a remainder of 162.
Put 3 as the next digit of the answer. 
Result so far: 6255.873493
Subtracting 498 from 660 leaves us with 162.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1620, and continue the process.

Let's proceed to step 14:
166 can be fit into 1620 9 times, resulting in a remainder of 126.
Record the quotient 9 as the next digit in the result. 
Result so far: 6255.8734939
The remainder is 126 after subtracting 1494 from 1620.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1260, and continue the process.

Let's proceed to step 15:
If we divide 1260 by 166, we get 7 and a remainder of 98.
Use 7 as the next digit of our solution. 
Result so far: 6255.87349397
Deduct 1162 from 1260 and we're left with 98.
Since there are no more digits in the dividend, we add a zero to the remainder making it 980, and continue the process.

The final result is 6255.87349397 with a remainder of 9.8e-08.