Let's divide 989112 by 40
We want to figure out the number of times 989112 can be divided by 40.

Advancing to step 1:
40 can be fit into 9 0 times, resulting in a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 9 and we're left with 9.
Take the next digit (8) from the dividend and append it to 9, then repeat: 98 / 40

On to step 2:
98 divided by 40 is 2 with a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Deduct 80 from 98 and we're left with 18.
Fetch the next digit (9) from the dividend, attach it to 18 and continue: 189 / 40

Let's proceed to step 3:
40 can be fit into 189 4 times, resulting in a remainder of 29.
Put 4 as the next digit of the answer. 
Result so far: 24.0
If we take 160 away from 189, we end up with 29.
Include the next digit (1) from the dividend after 29, then repeat: 291 / 40

Step 4:
If we divide 291 by 40, we get 7 and a remainder of 11.
Put 7 as the next digit of the answer. 
Result so far: 247.0
If we subtract 280 from 291, we get 11.
Include the next digit (1) from the dividend after 11, then repeat: 111 / 40

Step 5:
40 can be fit into 111 2 times, resulting in a remainder of 31.
Use 2 as the next digit of our solution. 
Result so far: 2472.0
If we take 80 away from 111, we end up with 31.
Fetch the next digit (2) from the dividend, attach it to 31 and continue: 312 / 40

On to step 6:
The number 40 fits into 312 7 times, leaving a remainder of 32.
Write down 7 as next digit of the result. 
Result so far: 24727.0
If we subtract 280 from 312, we get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 7:
320 divided by 40 is 8 with a remainder of 0.
Put 8 as the next digit of the answer. 
Result so far: 24727.8
Subtracting 320 from 320 leaves us 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.

Going ahead to step 8:
When dividing 0 by 40, we get 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 24727.8
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 9:
If we divide 0 by 40, we get 0 and a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 24727.8
If we take 0 away from 0, we end up 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.

The final result is 24727.8 with a remainder of 0.0.