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

On to step 1:
7 divided by 45 is 0 with a remainder of 7.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 7 and we're left with 7.
Fetch the next digit (9) from the dividend, attach it to 7 and continue: 79 / 45

Advancing to step 2:
If we divide 79 by 45, we get 1 and a remainder of 34.
The next digit of our result is 1. 
Result so far: 1.0
If we subtract 45 from 79, we get 34.
Grab the next digit (8) from the dividend, add it to 34, then carry on: 348 / 45

Moving on to step 3:
The number 45 fits into 348 7 times, leaving a remainder of 33.
The number 7 becomes the next digit in our result. 
Result so far: 17.0
If we subtract 315 from 348, we get 33.
Fetch the next digit (9) from the dividend, attach it to 33 and continue: 339 / 45

Advancing to step 4:
45 goes into 339 7 times with a remainder of 24.
The next digit of our result is 7. 
Result so far: 177.0
The remainder is 24 after subtracting 315 from 339.
Fetch the next digit (8) from the dividend, attach it to 24 and continue: 248 / 45

Advancing to step 5:
If we divide 248 by 45, we get 5 and a remainder of 23.
The number 5 becomes the next digit in our result. 
Result so far: 1775.0
If we subtract 225 from 248, we get 23.
Fetch the next digit (7) from the dividend, attach it to 23 and continue: 237 / 45

Let's proceed to step 6:
45 can be fit into 237 5 times, resulting in a remainder of 12.
Put 5 as the next digit of the answer. 
Result so far: 17755.0
Subtracting 225 from 237 leaves us with 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Moving on to step 7:
If we divide 120 by 45, we get 2 and a remainder of 30.
Write down 2 as next digit of the result. 
Result so far: 17755.2
If we take 90 away from 120, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 8:
The number 45 fits into 300 6 times, leaving a remainder of 30.
Record the quotient 6 as the next digit in the result. 
Result so far: 17755.26
Subtract 270 from 300 to get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Moving on to step 9:
The number 45 fits into 300 6 times, leaving a remainder of 30.
Use 6 as the next digit of our solution. 
Result so far: 17755.266
If we subtract 270 from 300, we get 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

The final result is 17755.266 with a remainder of 0.003.