38776985 divided by 166 
Our goal is to divide 38776985 by 166.

Step 1:
The number 166 fits into 3 0 times, leaving a remainder of 3.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Bring next digit (8) of the dividend behind the 3 and repeat the process: 38 / 166

Let's proceed to step 2:
166 goes into 38 0 times with a remainder of 38.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 38, we end up with 38.
Grab the next digit (7) from the dividend, add it to 38, then carry on: 387 / 166

On to step 3:
166 goes into 387 2 times with a remainder of 55.
Use 2 as the next digit of our solution. 
Result so far: 2.0
Deduct 332 from 387 and we're left with 55.
Include the next digit (7) from the dividend after 55, then repeat: 557 / 166

Advancing to step 4:
If we divide 557 by 166, we get 3 and a remainder of 59.
Record the quotient 3 as the next digit in the result. 
Result so far: 23.0
Subtracting 498 from 557 leaves us with 59.
Take the next digit (6) from the dividend and append it to 59, then repeat: 596 / 166

On to step 5:
166 goes into 596 3 times with a remainder of 98.
The number 3 becomes the next digit in our result. 
Result so far: 233.0
Deduct 498 from 596 and we're left with 98.
Append the next digit (9) from the dividend to 98 and continue with: 989 / 166

Let's proceed to step 6:
The number 166 fits into 989 5 times, leaving a remainder of 159.
Use 5 as the next digit of our solution. 
Result so far: 2335.0
If we subtract 830 from 989, we get 159.
Include the next digit (8) from the dividend after 159, then repeat: 1598 / 166

Step 7:
1598 divided by 166 is 9 with a remainder of 104.
The next digit of our result is 9. 
Result so far: 23359.0
Deduct 1494 from 1598 and we're left with 104.
Append the next digit (5) from the dividend to 104 and continue with: 1045 / 166

Moving on to step 8:
The number 166 fits into 1045 6 times, leaving a remainder of 49.
Record the quotient 6 as the next digit in the result. 
Result so far: 233596.0
Subtract 996 from 1045 to get 49.
Since there are no more digits in the dividend, we add a zero to the remainder making it 490, and continue the process.

Going ahead to step 9:
490 divided by 166 is 2 with a remainder of 158.
Write down 2 as next digit of the result. 
Result so far: 233596.2
The remainder is 158 after subtracting 332 from 490.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1580, and continue the process.

Going ahead to step 10:
The number 166 fits into 1580 9 times, leaving a remainder of 86.
Use 9 as the next digit of our solution. 
Result so far: 233596.29
If we take 1494 away from 1580, we end up with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

On to step 11:
The number 166 fits into 860 5 times, leaving a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 233596.295
Deduct 830 from 860 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Advancing to step 12:
166 can be fit into 300 1 times, resulting in a remainder of 134.
The number 1 becomes the next digit in our result. 
Result so far: 233596.2951
If we take 166 away from 300, we end up with 134.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1340, and continue the process.

Step 13:
166 goes into 1340 8 times with a remainder of 12.
Write down 8 as next digit of the result. 
Result so far: 233596.29518
Subtract 1328 from 1340 to get 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Step 14:
The number 166 fits into 120 0 times, leaving a remainder of 120.
Write down 0 as next digit of the result. 
Result so far: 233596.29518
Deduct 0 from 120 and we're left with 120.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1200, and continue the process.

On to step 15:
166 can be fit into 1200 7 times, resulting in a remainder of 38.
Record the quotient 7 as the next digit in the result. 
Result so far: 233596.2951807
If we take 1162 away from 1200, we end up with 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Going ahead to step 16:
The number 166 fits into 380 2 times, leaving a remainder of 48.
Use 2 as the next digit of our solution. 
Result so far: 233596.29518072
The remainder is 48 after subtracting 332 from 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

Our division results in 233596.29518072 with a remaining 4.8e-08.