We're dividing 980687 by 40 
Let's see how many times 40 fits into 980687.

Step 1:
40 goes into 9 0 times with a remainder of 9.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 9, we end up with 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 40

Step 2:
When dividing 98 by 40, we get 2 with a remainder of 18.
The next digit of our result is 2. 
Result so far: 2.0
If we take 80 away from 98, we end up with 18.
Append the next digit (0) from the dividend to 18 and continue with: 180 / 40

Moving on to step 3:
The number 40 fits into 180 4 times, leaving a remainder of 20.
The next digit of our result is 4. 
Result so far: 24.0
If we subtract 160 from 180, we get 20.
Append the next digit (6) from the dividend to 20 and continue with: 206 / 40

Step 4:
206 divided by 40 is 5 with a remainder of 6.
Put 5 as the next digit of the answer. 
Result so far: 245.0
If we subtract 200 from 206, we get 6.
Take the next digit (8) from the dividend and append it to 6, then repeat: 68 / 40

Advancing to step 5:
If we divide 68 by 40, we get 1 and a remainder of 28.
The next digit of our result is 1. 
Result so far: 2451.0
If we subtract 40 from 68, we get 28.
Fetch the next digit (7) from the dividend, attach it to 28 and continue: 287 / 40

Going ahead to step 6:
The number 40 fits into 287 7 times, leaving a remainder of 7.
Put 7 as the next digit of the answer. 
Result so far: 24517.0
If we subtract 280 from 287, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

On to step 7:
40 goes into 70 1 times with a remainder of 30.
Put 1 as the next digit of the answer. 
Result so far: 24517.1
If we take 40 away from 70, 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.

Going ahead to step 8:
The number 40 fits into 300 7 times, leaving a remainder of 20.
Write down 7 as next digit of the result. 
Result so far: 24517.17
Subtract 280 from 300 to get 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:
If we divide 200 by 40, we get 5 and a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 24517.175
Deduct 200 from 200 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Let's proceed to step 10:
0 divided by 40 is 0 with a remainder of 0.
The next digit of our result is 0. 
Result so far: 24517.175
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 11:
The number 40 fits into 0 0 times, leaving a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 24517.175
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

In conclusion, the division gives 24517.175 with a balance of 0.0.