We divide 981830 by 40
Let's see how many times 40 fits into 981830.

Step 1:
The number 40 fits into 9 0 times, leaving a remainder of 9.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 9 to get 9.
Fetch the next digit (8) from the dividend, attach it to 9 and continue: 98 / 40

Let's proceed to step 2:
If we divide 98 by 40, we get 2 and a remainder of 18.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
Subtract 80 from 98 to get 18.
Append the next digit (1) from the dividend to 18 and continue with: 181 / 40

On to step 3:
40 can be fit into 181 4 times, resulting in a remainder of 21.
Use 4 as the next digit of our solution. 
Result so far: 24.0
If we take 160 away from 181, we end up with 21.
Fetch the next digit (8) from the dividend, attach it to 21 and continue: 218 / 40

Going ahead to step 4:
If we divide 218 by 40, we get 5 and a remainder of 18.
Put 5 as the next digit of the answer. 
Result so far: 245.0
Subtract 200 from 218 to get 18.
Bring next digit (3) of the dividend behind the 18 and repeat the process: 183 / 40

Moving on to step 5:
40 can be fit into 183 4 times, resulting in a remainder of 23.
Use 4 as the next digit of our solution. 
Result so far: 2454.0
Subtract 160 from 183 to get 23.
Grab the next digit (0) from the dividend, add it to 23, then carry on: 230 / 40

On to step 6:
230 divided by 40 is 5 with a remainder of 30.
Use 5 as the next digit of our solution. 
Result so far: 24545.0
The remainder is 30 after subtracting 200 from 230.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

On to step 7:
If we divide 300 by 40, we get 7 and a remainder of 20.
The next digit of our result is 7. 
Result so far: 24545.7
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.

Advancing to step 8:
40 goes into 200 5 times with a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 24545.75
The remainder is 0 after subtracting 200 from 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 9:
40 goes into 0 0 times with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 24545.75
Subtracting 0 from 0 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.

On to step 10:
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: 24545.75
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 24545.75 with a remainder of 0.0.