We're dividing 90477838 by 166 
Our goal is to divide 90477838 by 166.

Going ahead to step 1:
9 divided by 166 is 0 with a remainder of 9.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Bring next digit (0) of the dividend behind the 9 and repeat the process: 90 / 166

On to step 2:
The number 166 fits into 90 0 times, leaving a remainder of 90.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 90 to get 90.
Grab the next digit (4) from the dividend, add it to 90, then carry on: 904 / 166

Step 3:
If we divide 904 by 166, we get 5 and a remainder of 74.
Write down 5 as next digit of the result. 
Result so far: 5.0
If we subtract 830 from 904, we get 74.
Append the next digit (7) from the dividend to 74 and continue with: 747 / 166

Advancing to step 4:
The number 166 fits into 747 4 times, leaving a remainder of 83.
The next digit of our result is 4. 
Result so far: 54.0
If we subtract 664 from 747, we get 83.
Grab the next digit (7) from the dividend, add it to 83, then carry on: 837 / 166

On to step 5:
When dividing 837 by 166, we get 5 with a remainder of 7.
The number 5 becomes the next digit in our result. 
Result so far: 545.0
Subtract 830 from 837 to get 7.
Grab the next digit (8) from the dividend, add it to 7, then carry on: 78 / 166

Advancing to step 6:
The number 166 fits into 78 0 times, leaving a remainder of 78.
Write down 0 as next digit of the result. 
Result so far: 5450.0
The remainder is 78 after subtracting 0 from 78.
Include the next digit (3) from the dividend after 78, then repeat: 783 / 166

On to step 7:
If we divide 783 by 166, we get 4 and a remainder of 119.
Use 4 as the next digit of our solution. 
Result so far: 54504.0
Subtract 664 from 783 to get 119.
Take the next digit (8) from the dividend and append it to 119, then repeat: 1198 / 166

Advancing to step 8:
166 goes into 1198 7 times with a remainder of 36.
The number 7 becomes the next digit in our result. 
Result so far: 545047.0
Subtracting 1162 from 1198 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 9:
166 can be fit into 360 2 times, resulting in a remainder of 28.
The number 2 becomes the next digit in our result. 
Result so far: 545047.2
If we take 332 away from 360, we end up with 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

Going ahead to step 10:
280 divided by 166 is 1 with a remainder of 114.
Use 1 as the next digit of our solution. 
Result so far: 545047.21
The remainder is 114 after subtracting 166 from 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1140, and continue the process.

On to step 11:
1140 divided by 166 is 6 with a remainder of 144.
Use 6 as the next digit of our solution. 
Result so far: 545047.216
If we subtract 996 from 1140, we get 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

Going ahead to step 12:
When dividing 1440 by 166, we get 8 with a remainder of 112.
The next digit of our result is 8. 
Result so far: 545047.2168
If we subtract 1328 from 1440, we get 112.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1120, and continue the process.

Advancing to step 13:
166 can be fit into 1120 6 times, resulting in a remainder of 124.
The number 6 becomes the next digit in our result. 
Result so far: 545047.21686
Deduct 996 from 1120 and we're left with 124.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Step 14:
166 goes into 1240 7 times with a remainder of 78.
Put 7 as the next digit of the answer. 
Result so far: 545047.216867
If we take 1162 away from 1240, we end up with 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Let's proceed to step 15:
The number 166 fits into 780 4 times, leaving a remainder of 116.
Record the quotient 4 as the next digit in the result. 
Result so far: 545047.2168674
If we take 664 away from 780, we end up with 116.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1160, and continue the process.

Let's proceed to step 16:
The number 166 fits into 1160 6 times, leaving a remainder of 164.
The number 6 becomes the next digit in our result. 
Result so far: 545047.21686746
The remainder is 164 after subtracting 996 from 1160.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

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