We look at the division of 39980885 by 166 
Let's see how many times 166 fits into 39980885.

On to step 1:
The number 166 fits into 3 0 times, leaving a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 166

Step 2:
If we divide 39 by 166, we get 0 and a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 39 and we're left with 39.
Include the next digit (9) from the dividend after 39, then repeat: 399 / 166

Advancing to step 3:
The number 166 fits into 399 2 times, leaving a remainder of 67.
The next digit of our result is 2. 
Result so far: 2.0
Subtract 332 from 399 to get 67.
Bring next digit (8) of the dividend behind the 67 and repeat the process: 678 / 166

Step 4:
The number 166 fits into 678 4 times, leaving a remainder of 14.
Record the quotient 4 as the next digit in the result. 
Result so far: 24.0
Subtract 664 from 678 to get 14.
Include the next digit (0) from the dividend after 14, then repeat: 140 / 166

On to step 5:
166 goes into 140 0 times with a remainder of 140.
The next digit of our result is 0. 
Result so far: 240.0
The remainder is 140 after subtracting 0 from 140.
Fetch the next digit (8) from the dividend, attach it to 140 and continue: 1408 / 166

Going ahead to step 6:
166 can be fit into 1408 8 times, resulting in a remainder of 80.
Use 8 as the next digit of our solution. 
Result so far: 2408.0
If we subtract 1328 from 1408, we get 80.
Include the next digit (8) from the dividend after 80, then repeat: 808 / 166

Let's proceed to step 7:
166 can be fit into 808 4 times, resulting in a remainder of 144.
Use 4 as the next digit of our solution. 
Result so far: 24084.0
If we subtract 664 from 808, we get 144.
Include the next digit (5) from the dividend after 144, then repeat: 1445 / 166

Step 8:
166 goes into 1445 8 times with a remainder of 117.
Record the quotient 8 as the next digit in the result. 
Result so far: 240848.0
The remainder is 117 after subtracting 1328 from 1445.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1170, and continue the process.

Advancing to step 9:
166 goes into 1170 7 times with a remainder of 8.
Put 7 as the next digit of the answer. 
Result so far: 240848.7
Subtract 1162 from 1170 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 10:
The number 166 fits into 80 0 times, leaving a remainder of 80.
Put 0 as the next digit of the answer. 
Result so far: 240848.7
Subtracting 0 from 80 leaves us with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

On to step 11:
If we divide 800 by 166, we get 4 and a remainder of 136.
The next digit of our result is 4. 
Result so far: 240848.704
If we subtract 664 from 800, we get 136.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1360, and continue the process.

Step 12:
1360 divided by 166 is 8 with a remainder of 32.
The next digit of our result is 8. 
Result so far: 240848.7048
Subtracting 1328 from 1360 leaves us with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 13:
When dividing 320 by 166, we get 1 with a remainder of 154.
The number 1 becomes the next digit in our result. 
Result so far: 240848.70481
Subtracting 166 from 320 leaves us with 154.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1540, and continue the process.

On to step 14:
If we divide 1540 by 166, we get 9 and a remainder of 46.
Use 9 as the next digit of our solution. 
Result so far: 240848.704819
Subtract 1494 from 1540 to get 46.
Since there are no more digits in the dividend, we add a zero to the remainder making it 460, and continue the process.

Step 15:
If we divide 460 by 166, we get 2 and a remainder of 128.
Record the quotient 2 as the next digit in the result. 
Result so far: 240848.7048192
The remainder is 128 after subtracting 332 from 460.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1280, and continue the process.

Moving on to step 16:
166 goes into 1280 7 times with a remainder of 118.
Write down 7 as next digit of the result. 
Result so far: 240848.70481927
If we subtract 1162 from 1280, we get 118.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1180, and continue the process.

After the division, we end up with 240848.70481927 and a remainder of 1.18e-07.