We're dividing 40865842 by 186 
We want to divide 40865842 by 186.

Step 1:
If we divide 4 by 186, we get 0 and a remainder of 4.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 186

Going ahead to step 2:
186 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Append the next digit (8) from the dividend to 40 and continue with: 408 / 186

Advancing to step 3:
186 goes into 408 2 times with a remainder of 36.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 36 after subtracting 372 from 408.
Bring next digit (6) of the dividend behind the 36 and repeat the process: 366 / 186

Step 4:
If we divide 366 by 186, we get 1 and a remainder of 180.
Use 1 as the next digit of our solution. 
Result so far: 21.0
If we take 186 away from 366, we end up with 180.
Bring next digit (5) of the dividend behind the 180 and repeat the process: 1805 / 186

Step 5:
186 goes into 1805 9 times with a remainder of 131.
Put 9 as the next digit of the answer. 
Result so far: 219.0
If we take 1674 away from 1805, we end up with 131.
Take the next digit (8) from the dividend and append it to 131, then repeat: 1318 / 186

On to step 6:
When dividing 1318 by 186, we get 7 with a remainder of 16.
The next digit of our result is 7. 
Result so far: 2197.0
If we subtract 1302 from 1318, we get 16.
Append the next digit (4) from the dividend to 16 and continue with: 164 / 186

Advancing to step 7:
186 can be fit into 164 0 times, resulting in a remainder of 164.
Record the quotient 0 as the next digit in the result. 
Result so far: 21970.0
The remainder is 164 after subtracting 0 from 164.
Fetch the next digit (2) from the dividend, attach it to 164 and continue: 1642 / 186

Moving on to step 8:
186 goes into 1642 8 times with a remainder of 154.
Use 8 as the next digit of our solution. 
Result so far: 219708.0
Deduct 1488 from 1642 and we're left 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.

Going ahead to step 9:
If we divide 1540 by 186, we get 8 and a remainder of 52.
The next digit of our result is 8. 
Result so far: 219708.8
Deduct 1488 from 1540 and we're left with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Advancing to step 10:
When dividing 520 by 186, we get 2 with a remainder of 148.
Record the quotient 2 as the next digit in the result. 
Result so far: 219708.82
If we take 372 away from 520, we end up with 148.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1480, and continue the process.

Advancing to step 11:
186 can be fit into 1480 7 times, resulting in a remainder of 178.
Write down 7 as next digit of the result. 
Result so far: 219708.827
Deduct 1302 from 1480 and we're left with 178.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1780, and continue the process.

Advancing to step 12:
If we divide 1780 by 186, we get 9 and a remainder of 106.
Record the quotient 9 as the next digit in the result. 
Result so far: 219708.8279
Deduct 1674 from 1780 and we're left with 106.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1060, and continue the process.

Step 13:
When dividing 1060 by 186, we get 5 with a remainder of 130.
Write down 5 as next digit of the result. 
Result so far: 219708.82795
Subtract 930 from 1060 to get 130.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1300, and continue the process.

Going ahead to step 14:
186 can be fit into 1300 6 times, resulting in a remainder of 184.
Write down 6 as next digit of the result. 
Result so far: 219708.827956
Deduct 1116 from 1300 and we're left with 184.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1840, and continue the process.

Step 15:
If we divide 1840 by 186, we get 9 and a remainder of 166.
The next digit of our result is 9. 
Result so far: 219708.8279569
If we subtract 1674 from 1840, we get 166.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1660, and continue the process.

Advancing to step 16:
186 goes into 1660 8 times with a remainder of 172.
The next digit of our result is 8. 
Result so far: 219708.82795698
Subtracting 1488 from 1660 leaves us with 172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

Our division results in 219708.82795698 with a remaining 1.72e-07.