We look at the division of 501347 by 45 
Let's see how many times 45 fits into 501347.

On to step 1:
45 can be fit into 5 0 times, resulting in a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 45

Let's proceed to step 2:
The number 45 fits into 50 1 times, leaving a remainder of 5.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtract 45 from 50 to get 5.
Bring next digit (1) of the dividend behind the 5 and repeat the process: 51 / 45

Step 3:
If we divide 51 by 45, we get 1 and a remainder of 6.
Record the quotient 1 as the next digit in the result. 
Result so far: 11.0
Subtract 45 from 51 to get 6.
Take the next digit (3) from the dividend and append it to 6, then repeat: 63 / 45

On to step 4:
If we divide 63 by 45, we get 1 and a remainder of 18.
The number 1 becomes the next digit in our result. 
Result so far: 111.0
Subtracting 45 from 63 leaves us with 18.
Include the next digit (4) from the dividend after 18, then repeat: 184 / 45

Going ahead to step 5:
45 can be fit into 184 4 times, resulting in a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 1114.0
If we take 180 away from 184, we end up with 4.
Grab the next digit (7) from the dividend, add it to 4, then carry on: 47 / 45

Moving on to step 6:
47 divided by 45 is 1 with a remainder of 2.
Put 1 as the next digit of the answer. 
Result so far: 11141.0
Subtract 45 from 47 to get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 7:
45 can be fit into 20 0 times, resulting in a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 11141.0
The remainder is 20 after subtracting 0 from 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Moving on to step 8:
45 can be fit into 200 4 times, resulting in a remainder of 20.
Use 4 as the next digit of our solution. 
Result so far: 11141.04
Subtracting 180 from 200 leaves us with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Advancing to step 9:
When dividing 200 by 45, we get 4 with a remainder of 20.
The number 4 becomes the next digit in our result. 
Result so far: 11141.044
If we take 180 away from 200, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

The final outcome is 11141.044, with a leftover of 0.002.