We look at the division of 397222 by 23 
Our goal is to divide 397222 by 23.

Going ahead to step 1:
23 goes into 3 0 times with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Append the next digit (9) from the dividend to 3 and continue with: 39 / 23

Step 2:
23 can be fit into 39 1 times, resulting in a remainder of 16.
Write down 1 as next digit of the result. 
Result so far: 1.0
Deduct 23 from 39 and we're left with 16.
Fetch the next digit (7) from the dividend, attach it to 16 and continue: 167 / 23

Advancing to step 3:
167 divided by 23 is 7 with a remainder of 6.
Write down 7 as next digit of the result. 
Result so far: 17.0
If we take 161 away from 167, we end up with 6.
Fetch the next digit (2) from the dividend, attach it to 6 and continue: 62 / 23

Let's proceed to step 4:
When dividing 62 by 23, we get 2 with a remainder of 16.
Record the quotient 2 as the next digit in the result. 
Result so far: 172.0
Deduct 46 from 62 and we're left with 16.
Fetch the next digit (2) from the dividend, attach it to 16 and continue: 162 / 23

Moving on to step 5:
162 divided by 23 is 7 with a remainder of 1.
The number 7 becomes the next digit in our result. 
Result so far: 1727.0
If we subtract 161 from 162, we get 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 23

Step 6:
If we divide 12 by 23, we get 0 and a remainder of 12.
The next digit of our result is 0. 
Result so far: 17270.0
The remainder is 12 after subtracting 0 from 12.
Since there are no more digits in the dividend, we add a zero to the remainder making it 120, and continue the process.

Going ahead to step 7:
23 goes into 120 5 times with a remainder of 5.
The number 5 becomes the next digit in our result. 
Result so far: 17270.5
Deduct 115 from 120 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

Step 8:
If we divide 50 by 23, we get 2 and a remainder of 4.
Write down 2 as next digit of the result. 
Result so far: 17270.52
The remainder is 4 after subtracting 46 from 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Advancing to step 9:
The number 23 fits into 40 1 times, leaving a remainder of 17.
Put 1 as the next digit of the answer. 
Result so far: 17270.521
The remainder is 17 after subtracting 23 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

Going ahead to step 10:
When dividing 170 by 23, we get 7 with a remainder of 9.
Write down 7 as next digit of the result. 
Result so far: 17270.5217
If we take 161 away from 170, we end up with 9.
Since there are no more digits in the dividend, we add a zero to the remainder making it 90, and continue the process.

Going ahead to step 11:
23 goes into 90 3 times with a remainder of 21.
Put 3 as the next digit of the answer. 
Result so far: 17270.52173
If we take 69 away from 90, we end up with 21.
Since there are no more digits in the dividend, we add a zero to the remainder making it 210, and continue the process.

Going ahead to step 12:
23 can be fit into 210 9 times, resulting in a remainder of 3.
Put 9 as the next digit of the answer. 
Result so far: 17270.521739
Subtracting 207 from 210 leaves us with 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Moving on to step 13:
23 can be fit into 30 1 times, resulting in a remainder of 7.
Use 1 as the next digit of our solution. 
Result so far: 17270.5217391
If we subtract 23 from 30, we get 7.
Since there are no more digits in the dividend, we add a zero to the remainder making it 70, and continue the process.

Going ahead to step 14:
70 divided by 23 is 3 with a remainder of 1.
The number 3 becomes the next digit in our result. 
Result so far: 17270.52173913
The remainder is 1 after subtracting 69 from 70.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

The final outcome is 17270.52173913, with a leftover of 1e-09.