We look at the division of 218042 by 45 
We want to divide 218042 by 45.

Step 1:
The number 45 fits into 2 0 times, leaving a remainder of 2.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 2 to get 2.
Bring next digit (1) of the dividend behind the 2 and repeat the process: 21 / 45

Going ahead to step 2:
If we divide 21 by 45, we get 0 and a remainder of 21.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 21 to get 21.
Fetch the next digit (8) from the dividend, attach it to 21 and continue: 218 / 45

Step 3:
218 divided by 45 is 4 with a remainder of 38.
The number 4 becomes the next digit in our result. 
Result so far: 4.0
The remainder is 38 after subtracting 180 from 218.
Append the next digit (0) from the dividend to 38 and continue with: 380 / 45

On to step 4:
The number 45 fits into 380 8 times, leaving a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 48.0
Subtract 360 from 380 to get 20.
Grab the next digit (4) from the dividend, add it to 20, then carry on: 204 / 45

Going ahead to step 5:
If we divide 204 by 45, we get 4 and a remainder of 24.
Write down 4 as next digit of the result. 
Result so far: 484.0
The remainder is 24 after subtracting 180 from 204.
Take the next digit (2) from the dividend and append it to 24, then repeat: 242 / 45

On to step 6:
45 can be fit into 242 5 times, resulting in a remainder of 17.
Put 5 as the next digit of the answer. 
Result so far: 4845.0
Deduct 225 from 242 and we're left with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Step 7:
When dividing 170 by 45, we get 3 with a remainder of 35.
Use 3 as the next digit of our solution. 
Result so far: 4845.3
If we take 135 away from 170, we end up with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Moving on to step 8:
The number 45 fits into 350 7 times, leaving a remainder of 35.
The next digit of our result is 7. 
Result so far: 4845.37
Subtracting 315 from 350 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Advancing to step 9:
45 can be fit into 350 7 times, resulting in a remainder of 35.
Put 7 as the next digit of the answer. 
Result so far: 4845.377
Deduct 315 from 350 and we're left with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

The final outcome is 4845.377, with a leftover of 0.0035.