987502 ÷ 45 
We want to figure out the number of times 987502 can be divided by 45.

Step 1:
45 goes into 9 0 times with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 9, we get 9.
Append the next digit (8) from the dividend to 9 and continue with: 98 / 45

Moving on to step 2:
98 divided by 45 is 2 with a remainder of 8.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 8 after subtracting 90 from 98.
Take the next digit (7) from the dividend and append it to 8, then repeat: 87 / 45

Let's proceed to step 3:
The number 45 fits into 87 1 times, leaving a remainder of 42.
Write down 1 as next digit of the result. 
Result so far: 21.0
Subtracting 45 from 87 leaves us with 42.
Append the next digit (5) from the dividend to 42 and continue with: 425 / 45

Going ahead to step 4:
If we divide 425 by 45, we get 9 and a remainder of 20.
The number 9 becomes the next digit in our result. 
Result so far: 219.0
If we take 405 away from 425, we end up with 20.
Fetch the next digit (0) from the dividend, attach it to 20 and continue: 200 / 45

Going ahead to step 5:
45 can be fit into 200 4 times, resulting in a remainder of 20.
Record the quotient 4 as the next digit in the result. 
Result so far: 2194.0
If we take 180 away from 200, we end up with 20.
Fetch the next digit (2) from the dividend, attach it to 20 and continue: 202 / 45

Moving on to step 6:
The number 45 fits into 202 4 times, leaving a remainder of 22.
The number 4 becomes the next digit in our result. 
Result so far: 21944.0
If we subtract 180 from 202, we get 22.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 7:
220 divided by 45 is 4 with a remainder of 40.
Put 4 as the next digit of the answer. 
Result so far: 21944.4
Subtract 180 from 220 to get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 8:
400 divided by 45 is 8 with a remainder of 40.
The number 8 becomes the next digit in our result. 
Result so far: 21944.48
Subtracting 360 from 400 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Let's proceed to step 9:
If we divide 400 by 45, we get 8 and a remainder of 40.
Use 8 as the next digit of our solution. 
Result so far: 21944.488
If we subtract 360 from 400, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

In conclusion, the division gives 21944.488 with a balance of 0.004.