We're dividing 397997 by 9 
Our goal is to divide 397997 by 9.

Going ahead to step 1:
3 divided by 9 is 0 with a remainder of 3.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 3 and we're left with 3.
Grab the next digit (9) from the dividend, add it to 3, then carry on: 39 / 9

Going ahead to step 2:
39 divided by 9 is 4 with a remainder of 3.
The next digit of our result is 4. 
Result so far: 4.0
If we take 36 away from 39, we end up with 3.
Grab the next digit (7) from the dividend, add it to 3, then carry on: 37 / 9

Let's proceed to step 3:
The number 9 fits into 37 4 times, leaving a remainder of 1.
The next digit of our result is 4. 
Result so far: 44.0
The remainder is 1 after subtracting 36 from 37.
Bring next digit (9) of the dividend behind the 1 and repeat the process: 19 / 9

Moving on to step 4:
When dividing 19 by 9, we get 2 with a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 442.0
Subtract 18 from 19 to get 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 9

Let's proceed to step 5:
If we divide 19 by 9, we get 2 and a remainder of 1.
Write down 2 as next digit of the result. 
Result so far: 4422.0
Deduct 18 from 19 and we're left with 1.
Include the next digit (7) from the dividend after 1, then repeat: 17 / 9

Moving on to step 6:
9 can be fit into 17 1 times, resulting in a remainder of 8.
Put 1 as the next digit of the answer. 
Result so far: 44221.0
Subtracting 9 from 17 leaves us with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Going ahead to step 7:
9 goes into 80 8 times with a remainder of 8.
The next digit of our result is 8. 
Result so far: 44221.8
Deduct 72 from 80 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 8:
80 divided by 9 is 8 with a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 44221.88
Subtract 72 from 80 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

The final result is 44221.88 with a remainder of 0.008.