22797 divided by 40 
Let's see how many times 40 fits into 22797.

On to step 1:
2 divided by 40 is 0 with a remainder of 2.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we take 0 away from 2, we end up with 2.
Grab the next digit (2) from the dividend, add it to 2, then carry on: 22 / 40

Let's proceed to step 2:
40 can be fit into 22 0 times, resulting in a remainder of 22.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 22, we end up with 22.
Fetch the next digit (7) from the dividend, attach it to 22 and continue: 227 / 40

Step 3:
227 divided by 40 is 5 with a remainder of 27.
Use 5 as the next digit of our solution. 
Result so far: 5.0
If we subtract 200 from 227, we get 27.
Append the next digit (9) from the dividend to 27 and continue with: 279 / 40

Going ahead to step 4:
When dividing 279 by 40, we get 6 with a remainder of 39.
Write down 6 as next digit of the result. 
Result so far: 56.0
If we subtract 240 from 279, we get 39.
Include the next digit (7) from the dividend after 39, then repeat: 397 / 40

Going ahead to step 5:
40 can be fit into 397 9 times, resulting in a remainder of 37.
Record the quotient 9 as the next digit in the result. 
Result so far: 569.0
The remainder is 37 after subtracting 360 from 397.
Since there are no more digits in the dividend, we add a zero to the remainder making it 370, and continue the process.

On to step 6:
40 can be fit into 370 9 times, resulting in a remainder of 10.
The number 9 becomes the next digit in our result. 
Result so far: 569.9
The remainder is 10 after subtracting 360 from 370.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

Step 7:
40 goes into 100 2 times with a remainder of 20.
The number 2 becomes the next digit in our result. 
Result so far: 569.92
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.

Advancing to step 8:
When dividing 200 by 40, we get 5 with a remainder of 0.
The next digit of our result is 5. 
Result so far: 569.925
Subtract 200 from 200 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.

Going ahead to step 9:
The number 40 fits into 0 0 times, leaving a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 569.925
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.

Moving on to step 10:
When dividing 0 by 40, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 569.925
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.

The quotient of the division is 569.925, and the remainder is 0.0.