Let's divide 397447 by 38
We want to divide 397447 by 38.

Going ahead to step 1:
If we divide 3 by 38, we get 0 and 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.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 38

On to step 2:
If we divide 39 by 38, we get 1 and a remainder of 1.
The next digit of our result is 1. 
Result so far: 1.0
Deduct 38 from 39 and we're left with 1.
Bring next digit (7) of the dividend behind the 1 and repeat the process: 17 / 38

Step 3:
17 divided by 38 is 0 with a remainder of 17.
Put 0 as the next digit of the answer. 
Result so far: 10.0
Subtracting 0 from 17 leaves us with 17.
Fetch the next digit (4) from the dividend, attach it to 17 and continue: 174 / 38

Going ahead to step 4:
174 divided by 38 is 4 with a remainder of 22.
Record the quotient 4 as the next digit in the result. 
Result so far: 104.0
Subtracting 152 from 174 leaves us with 22.
Include the next digit (4) from the dividend after 22, then repeat: 224 / 38

Advancing to step 5:
The number 38 fits into 224 5 times, leaving a remainder of 34.
The next digit of our result is 5. 
Result so far: 1045.0
If we take 190 away from 224, we end up with 34.
Bring next digit (7) of the dividend behind the 34 and repeat the process: 347 / 38

Step 6:
The number 38 fits into 347 9 times, leaving a remainder of 5.
Put 9 as the next digit of the answer. 
Result so far: 10459.0
Deduct 342 from 347 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.

Let's proceed to step 7:
When dividing 50 by 38, we get 1 with a remainder of 12.
Record the quotient 1 as the next digit in the result. 
Result so far: 10459.1
Deduct 38 from 50 and we're left with 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 8:
When dividing 120 by 38, we get 3 with a remainder of 6.
Write down 3 as next digit of the result. 
Result so far: 10459.13
If we subtract 114 from 120, we get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Moving on to step 9:
38 can be fit into 60 1 times, resulting in a remainder of 22.
The next digit of our result is 1. 
Result so far: 10459.131
The remainder is 22 after subtracting 38 from 60.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Let's proceed to step 10:
38 can be fit into 220 5 times, resulting in a remainder of 30.
Put 5 as the next digit of the answer. 
Result so far: 10459.1315
Deduct 190 from 220 and we're left with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Step 11:
300 divided by 38 is 7 with a remainder of 34.
The next digit of our result is 7. 
Result so far: 10459.13157
Subtracting 266 from 300 leaves us with 34.
Since there are no more digits in the dividend, we add a zero to the remainder making it 340, and continue the process.

On to step 12:
If we divide 340 by 38, we get 8 and a remainder of 36.
The number 8 becomes the next digit in our result. 
Result so far: 10459.131578
Deduct 304 from 340 and we're left with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 13:
38 goes into 360 9 times with a remainder of 18.
Write down 9 as next digit of the result. 
Result so far: 10459.1315789
Subtracting 342 from 360 leaves us with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Advancing to step 14:
When dividing 180 by 38, we get 4 with a remainder of 28.
The number 4 becomes the next digit in our result. 
Result so far: 10459.13157894
If we subtract 152 from 180, we get 28.
Since there are no more digits in the dividend, we add a zero to the remainder making it 280, and continue the process.

The quotient of the division is 10459.13157894, and the remainder is 2.8e-08.