We look at the division of 396670 by 38 
Our goal is to divide 396670 by 38.

Let's proceed to step 1:
When dividing 3 by 38, we get 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 3 to get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 38

Advancing to step 2:
38 can be fit into 39 1 times, resulting in a remainder of 1.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 38 from 39 to get 1.
Take the next digit (6) from the dividend and append it to 1, then repeat: 16 / 38

Step 3:
The number 38 fits into 16 0 times, leaving a remainder of 16.
Record the quotient 0 as the next digit in the result. 
Result so far: 10.0
Subtract 0 from 16 to get 16.
Fetch the next digit (6) from the dividend, attach it to 16 and continue: 166 / 38

Moving on to step 4:
When dividing 166 by 38, we get 4 with a remainder of 14.
Put 4 as the next digit of the answer. 
Result so far: 104.0
Deduct 152 from 166 and we're left with 14.
Append the next digit (7) from the dividend to 14 and continue with: 147 / 38

Going ahead to step 5:
38 can be fit into 147 3 times, resulting in a remainder of 33.
Use 3 as the next digit of our solution. 
Result so far: 1043.0
Subtract 114 from 147 to get 33.
Append the next digit (0) from the dividend to 33 and continue with: 330 / 38

Going ahead to step 6:
If we divide 330 by 38, we get 8 and a remainder of 26.
Use 8 as the next digit of our solution. 
Result so far: 10438.0
If we take 304 away from 330, we end up with 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Moving on to step 7:
The number 38 fits into 260 6 times, leaving a remainder of 32.
The number 6 becomes the next digit in our result. 
Result so far: 10438.6
Subtract 228 from 260 to get 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Going ahead to step 8:
38 goes into 320 8 times with a remainder of 16.
Put 8 as the next digit of the answer. 
Result so far: 10438.68
Subtracting 304 from 320 leaves us with 16.
Since there are no more digits in the dividend, we add a zero to the remainder making it 160, and continue the process.

Let's proceed to step 9:
38 can be fit into 160 4 times, resulting in a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 10438.684
If we take 152 away from 160, we end up 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.

Step 10:
When dividing 80 by 38, we get 2 with a remainder of 4.
Record the quotient 2 as the next digit in the result. 
Result so far: 10438.6842
The remainder is 4 after subtracting 76 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Going ahead to step 11:
38 goes into 40 1 times with a remainder of 2.
Write down 1 as next digit of the result. 
Result so far: 10438.68421
The remainder is 2 after subtracting 38 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Going ahead to step 12:
If we divide 20 by 38, we get 0 and a remainder of 20.
Write down 0 as next digit of the result. 
Result so far: 10438.68421
Subtract 0 from 20 to get 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 13:
The number 38 fits into 200 5 times, leaving a remainder of 10.
Record the quotient 5 as the next digit in the result. 
Result so far: 10438.6842105
If we subtract 190 from 200, we get 10.
Since there are no more digits in the dividend, we add a zero to the remainder making it 100, and continue the process.

On to step 14:
If we divide 100 by 38, we get 2 and a remainder of 24.
The next digit of our result is 2. 
Result so far: 10438.68421052
Subtract 76 from 100 to get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

The quotient of the division is 10438.68421052, and the remainder is 2.4e-08.