We're dividing 987873 by 45 
We're looking to find how many times 45 goes into 987873.

Step 1:
45 can be fit into 9 0 times, resulting in a remainder of 9.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Include the next digit (8) from the dividend after 9, then repeat: 98 / 45

On to step 2:
98 divided by 45 is 2 with a remainder of 8.
Write down 2 as next digit of the result. 
Result so far: 2.0
Subtract 90 from 98 to get 8.
Bring next digit (7) of the dividend behind the 8 and repeat the process: 87 / 45

Moving on to step 3:
45 can be fit into 87 1 times, resulting in a remainder of 42.
Write down 1 as next digit of the result. 
Result so far: 21.0
If we take 45 away from 87, we end up with 42.
Include the next digit (8) from the dividend after 42, then repeat: 428 / 45

Advancing to step 4:
The number 45 fits into 428 9 times, leaving a remainder of 23.
The next digit of our result is 9. 
Result so far: 219.0
The remainder is 23 after subtracting 405 from 428.
Append the next digit (7) from the dividend to 23 and continue with: 237 / 45

Advancing to step 5:
237 divided by 45 is 5 with a remainder of 12.
Use 5 as the next digit of our solution. 
Result so far: 2195.0
Deduct 225 from 237 and we're left with 12.
Include the next digit (3) from the dividend after 12, then repeat: 123 / 45

Going ahead to step 6:
123 divided by 45 is 2 with a remainder of 33.
The next digit of our result is 2. 
Result so far: 21952.0
Deduct 90 from 123 and we're left with 33.
Since there are no more digits in the dividend, we add a zero to the remainder making it 330, and continue the process.

On to step 7:
When dividing 330 by 45, we get 7 with a remainder of 15.
Use 7 as the next digit of our solution. 
Result so far: 21952.7
Subtracting 315 from 330 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

On to step 8:
If we divide 150 by 45, we get 3 and a remainder of 15.
Write down 3 as next digit of the result. 
Result so far: 21952.73
If we subtract 135 from 150, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Moving on to step 9:
The number 45 fits into 150 3 times, leaving a remainder of 15.
Put 3 as the next digit of the answer. 
Result so far: 21952.733
If we subtract 135 from 150, we get 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

In conclusion, the division gives 21952.733 with a balance of 0.0015.