We're dividing 42228377 by 840 
We're looking to find how many times 840 goes into 42228377.

Advancing to step 1:
840 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Bring next digit (2) of the dividend behind the 4 and repeat the process: 42 / 840

On to step 2:
The number 840 fits into 42 0 times, leaving a remainder of 42.
Use 0 as the next digit of our solution. 
Result so far: 0.0
If we subtract 0 from 42, we get 42.
Bring next digit (2) of the dividend behind the 42 and repeat the process: 422 / 840

Going ahead to step 3:
840 goes into 422 0 times with a remainder of 422.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 422, we get 422.
Append the next digit (2) from the dividend to 422 and continue with: 4222 / 840

Moving on to step 4:
4222 divided by 840 is 5 with a remainder of 22.
The number 5 becomes the next digit in our result. 
Result so far: 5.0
If we subtract 4200 from 4222, we get 22.
Take the next digit (8) from the dividend and append it to 22, then repeat: 228 / 840

Let's proceed to step 5:
228 divided by 840 is 0 with a remainder of 228.
Put 0 as the next digit of the answer. 
Result so far: 50.0
Subtract 0 from 228 to get 228.
Append the next digit (3) from the dividend to 228 and continue with: 2283 / 840

Advancing to step 6:
When dividing 2283 by 840, we get 2 with a remainder of 603.
The number 2 becomes the next digit in our result. 
Result so far: 502.0
Deduct 1680 from 2283 and we're left with 603.
Include the next digit (7) from the dividend after 603, then repeat: 6037 / 840

Advancing to step 7:
When dividing 6037 by 840, we get 7 with a remainder of 157.
Put 7 as the next digit of the answer. 
Result so far: 5027.0
The remainder is 157 after subtracting 5880 from 6037.
Fetch the next digit (7) from the dividend, attach it to 157 and continue: 1577 / 840

Step 8:
1577 divided by 840 is 1 with a remainder of 737.
The number 1 becomes the next digit in our result. 
Result so far: 50271.0
The remainder is 737 after subtracting 840 from 1577.
Since there are no more digits in the dividend, we add a zero to the remainder making it 7370, and continue the process.

Let's proceed to step 9:
840 can be fit into 7370 8 times, resulting in a remainder of 650.
Use 8 as the next digit of our solution. 
Result so far: 50271.8
If we subtract 6720 from 7370, we get 650.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6500, and continue the process.

Advancing to step 10:
If we divide 6500 by 840, we get 7 and a remainder of 620.
The number 7 becomes the next digit in our result. 
Result so far: 50271.87
Subtracting 5880 from 6500 leaves us with 620.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6200, and continue the process.

Moving on to step 11:
840 goes into 6200 7 times with a remainder of 320.
Put 7 as the next digit of the answer. 
Result so far: 50271.877
If we subtract 5880 from 6200, we get 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3200, and continue the process.

Our division results in 50271.877 with a remaining 0.032.