We're dividing 397229 by 79 
Let's see how many times 79 fits into 397229.

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

On to step 2:
The number 79 fits into 39 0 times, leaving a remainder of 39.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 39 after subtracting 0 from 39.
Take the next digit (7) from the dividend and append it to 39, then repeat: 397 / 79

Going ahead to step 3:
397 divided by 79 is 5 with a remainder of 2.
Put 5 as the next digit of the answer. 
Result so far: 5.0
If we take 395 away from 397, we end up with 2.
Fetch the next digit (2) from the dividend, attach it to 2 and continue: 22 / 79

Going ahead to step 4:
If we divide 22 by 79, we get 0 and a remainder of 22.
Write down 0 as next digit of the result. 
Result so far: 50.0
If we subtract 0 from 22, we get 22.
Bring next digit (2) of the dividend behind the 22 and repeat the process: 222 / 79

Step 5:
222 divided by 79 is 2 with a remainder of 64.
The number 2 becomes the next digit in our result. 
Result so far: 502.0
The remainder is 64 after subtracting 158 from 222.
Grab the next digit (9) from the dividend, add it to 64, then carry on: 649 / 79

Going ahead to step 6:
649 divided by 79 is 8 with a remainder of 17.
The next digit of our result is 8. 
Result so far: 5028.0
The remainder is 17 after subtracting 632 from 649.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 7:
79 goes into 170 2 times with a remainder of 12.
Write down 2 as next digit of the result. 
Result so far: 5028.2
If we take 158 away from 170, we end up 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.

Step 8:
The number 79 fits into 120 1 times, leaving a remainder of 41.
Record the quotient 1 as the next digit in the result. 
Result so far: 5028.21
If we take 79 away from 120, we end up with 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Moving on to step 9:
79 goes into 410 5 times with a remainder of 15.
Put 5 as the next digit of the answer. 
Result so far: 5028.215
Subtracting 395 from 410 leaves us with 15.
Since there are no more digits in the dividend, we add a zero to the remainder making it 150, and continue the process.

Going ahead to step 10:
79 goes into 150 1 times with a remainder of 71.
Record the quotient 1 as the next digit in the result. 
Result so far: 5028.2151
If we subtract 79 from 150, we get 71.
Since there are no more digits in the dividend, we add a zero to the remainder making it 710, and continue the process.

On to step 11:
When dividing 710 by 79, we get 8 with a remainder of 78.
Record the quotient 8 as the next digit in the result. 
Result so far: 5028.21518
Deduct 632 from 710 and we're left with 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Advancing to step 12:
79 can be fit into 780 9 times, resulting in a remainder of 69.
Record the quotient 9 as the next digit in the result. 
Result so far: 5028.215189
Subtract 711 from 780 to get 69.
Since there are no more digits in the dividend, we add a zero to the remainder making it 690, and continue the process.

Advancing to step 13:
79 can be fit into 690 8 times, resulting in a remainder of 58.
Use 8 as the next digit of our solution. 
Result so far: 5028.2151898
Subtract 632 from 690 to get 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Step 14:
79 can be fit into 580 7 times, resulting in a remainder of 27.
The next digit of our result is 7. 
Result so far: 5028.21518987
Deduct 553 from 580 and we're left with 27.
Since there are no more digits in the dividend, we add a zero to the remainder making it 270, and continue the process.

In conclusion, the division gives 5028.21518987 with a balance of 2.7e-08.