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

Step 1:
40 can be fit into 8 0 times, resulting in a remainder of 8.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 8 leaves us with 8.
Take the next digit (9) from the dividend and append it to 8, then repeat: 89 / 40

Advancing to step 2:
40 goes into 89 2 times with a remainder of 9.
Record the quotient 2 as the next digit in the result. 
Result so far: 2.0
Subtracting 80 from 89 leaves us with 9.
Fetch the next digit (7) from the dividend, attach it to 9 and continue: 97 / 40

Advancing to step 3:
When dividing 97 by 40, we get 2 with a remainder of 17.
Put 2 as the next digit of the answer. 
Result so far: 22.0
If we subtract 80 from 97, we get 17.
Append the next digit (7) from the dividend to 17 and continue with: 177 / 40

Advancing to step 4:
177 divided by 40 is 4 with a remainder of 17.
Write down 4 as next digit of the result. 
Result so far: 224.0
The remainder is 17 after subtracting 160 from 177.
Take the next digit (7) from the dividend and append it to 17, then repeat: 177 / 40

Going ahead to step 5:
40 goes into 177 4 times with a remainder of 17.
Use 4 as the next digit of our solution. 
Result so far: 2244.0
Subtract 160 from 177 to get 17.
Take the next digit (4) from the dividend and append it to 17, then repeat: 174 / 40

Advancing to step 6:
The number 40 fits into 174 4 times, leaving a remainder of 14.
Put 4 as the next digit of the answer. 
Result so far: 22444.0
If we take 160 away from 174, we end up with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Step 7:
140 divided by 40 is 3 with a remainder of 20.
The next digit of our result is 3. 
Result so far: 22444.3
Deduct 120 from 140 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.

On 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: 22444.35
Subtracting 200 from 200 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.

Moving on to step 9:
When dividing 0 by 40, we get 0 with a remainder of 0.
Put 0 as the next digit of the answer. 
Result so far: 22444.35
Deduct 0 from 0 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.

Going ahead to step 10:
40 goes into 0 0 times with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 22444.35
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 result is 22444.35 with a remainder of 0.0.