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

Step 1:
When dividing 8 by 40, we get 0 with a remainder of 8.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 8, we end up with 8.
Append the next digit (9) from the dividend to 8 and continue with: 89 / 40

Going ahead to step 2:
When dividing 89 by 40, we get 2 with a remainder of 9.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 9 after subtracting 80 from 89.
Append the next digit (9) from the dividend to 9 and continue with: 99 / 40

Step 3:
When dividing 99 by 40, we get 2 with a remainder of 19.
Put 2 as the next digit of the answer. 
Result so far: 22.0
If we take 80 away from 99, we end up with 19.
Grab the next digit (0) from the dividend, add it to 19, then carry on: 190 / 40

Step 4:
When dividing 190 by 40, we get 4 with a remainder of 30.
The number 4 becomes the next digit in our result. 
Result so far: 224.0
Deduct 160 from 190 and we're left with 30.
Bring next digit (4) of the dividend behind the 30 and repeat the process: 304 / 40

Advancing to step 5:
The number 40 fits into 304 7 times, leaving a remainder of 24.
The number 7 becomes the next digit in our result. 
Result so far: 2247.0
If we take 280 away from 304, we end up with 24.
Grab the next digit (1) from the dividend, add it to 24, then carry on: 241 / 40

On to step 6:
40 goes into 241 6 times with a remainder of 1.
Put 6 as the next digit of the answer. 
Result so far: 22476.0
If we subtract 240 from 241, we get 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Moving on to step 7:
40 can be fit into 10 0 times, resulting in a remainder of 10.
Record the quotient 0 as the next digit in the result. 
Result so far: 22476.0
Subtracting 0 from 10 leaves us with 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Advancing to step 8:
40 can be fit into 100 2 times, resulting in a remainder of 20.
Put 2 as the next digit of the answer. 
Result so far: 22476.02
Deduct 80 from 100 and we're left 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.

Going ahead to step 9:
40 can be fit into 200 5 times, resulting in a remainder of 0.
Record the quotient 5 as the next digit in the result. 
Result so far: 22476.025
If we take 200 away from 200, 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.

Let's proceed to step 10:
40 can be fit into 0 0 times, resulting in a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 22476.025
Subtract 0 from 0 to 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 11:
0 divided by 40 is 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 22476.025
Subtract 0 from 0 to 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.

The final outcome is 22476.025, with a leftover of 0.0.