We look at the division of 988111 by 40 
Our goal is to divide 988111 by 40.

Let's proceed to step 1:
9 divided by 40 is 0 with a remainder of 9.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 9 after subtracting 0 from 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 40

Let's proceed to step 2:
The number 40 fits into 98 2 times, leaving a remainder of 18.
The next digit of our result is 2. 
Result so far: 2.0
The remainder is 18 after subtracting 80 from 98.
Take the next digit (8) from the dividend and append it to 18, then repeat: 188 / 40

On to step 3:
If we divide 188 by 40, we get 4 and a remainder of 28.
Put 4 as the next digit of the answer. 
Result so far: 24.0
Subtracting 160 from 188 leaves us with 28.
Take the next digit (1) from the dividend and append it to 28, then repeat: 281 / 40

On to step 4:
40 can be fit into 281 7 times, resulting in a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 247.0
The remainder is 1 after subtracting 280 from 281.
Append the next digit (1) from the dividend to 1 and continue with: 11 / 40

Step 5:
11 divided by 40 is 0 with a remainder of 11.
The next digit of our result is 0. 
Result so far: 2470.0
Subtracting 0 from 11 leaves us with 11.
Take the next digit (1) from the dividend and append it to 11, then repeat: 111 / 40

On to step 6:
The number 40 fits into 111 2 times, leaving a remainder of 31.
Write down 2 as next digit of the result. 
Result so far: 24702.0
If we subtract 80 from 111, we get 31.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

On to step 7:
40 goes into 310 7 times with a remainder of 30.
Use 7 as the next digit of our solution. 
Result so far: 24702.7
The remainder is 30 after subtracting 280 from 310.
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.
The number 7 becomes the next digit in our result. 
Result so far: 24702.77
If we take 280 away from 300, 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.

Our division results in 24702.77 with a remaining 0.02.