We look at the division of 500258 by 45 
We're looking to find how many times 45 goes into 500258.

On to step 1:
5 divided by 45 is 0 with a remainder of 5.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 5, we end up with 5.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 45

Let's proceed to step 2:
50 divided by 45 is 1 with a remainder of 5.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 45 from 50 and we're left with 5.
Grab the next digit (0) from the dividend, add it to 5, then carry on: 50 / 45

Advancing to step 3:
45 can be fit into 50 1 times, resulting in a remainder of 5.
The next digit of our result is 1. 
Result so far: 11.0
The remainder is 5 after subtracting 45 from 50.
Include the next digit (2) from the dividend after 5, then repeat: 52 / 45

Moving on to step 4:
The number 45 fits into 52 1 times, leaving a remainder of 7.
The next digit of our result is 1. 
Result so far: 111.0
Subtracting 45 from 52 leaves us with 7.
Grab the next digit (5) from the dividend, add it to 7, then carry on: 75 / 45

Step 5:
45 can be fit into 75 1 times, resulting in a remainder of 30.
Put 1 as the next digit of the answer. 
Result so far: 1111.0
Subtract 45 from 75 to get 30.
Bring next digit (8) of the dividend behind the 30 and repeat the process: 308 / 45

On to step 6:
308 divided by 45 is 6 with a remainder of 38.
Write down 6 as next digit of the result. 
Result so far: 11116.0
The remainder is 38 after subtracting 270 from 308.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Moving on to step 7:
45 can be fit into 380 8 times, resulting in a remainder of 20.
Put 8 as the next digit of the answer. 
Result so far: 11116.8
If we take 360 away from 380, 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.

Let's proceed to step 8:
45 goes into 200 4 times with a remainder of 20.
The next digit of our result is 4. 
Result so far: 11116.84
Deduct 180 from 200 and we're left 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.

Moving on to step 9:
The number 45 fits into 200 4 times, leaving a remainder of 20.
Use 4 as the next digit of our solution. 
Result so far: 11116.844
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 result is 11116.844 with a remainder of 0.002.