We look at the division of 399158 by 5 
Let's see how many times 5 fits into 399158.

On to step 1:
When dividing 3 by 5, we get 0 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.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 5

Moving on to step 2:
5 can be fit into 39 7 times, resulting in a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 7.0
If we subtract 35 from 39, we get 4.
Bring next digit (9) of the dividend behind the 4 and repeat the process: 49 / 5

On to step 3:
49 divided by 5 is 9 with a remainder of 4.
Write down 9 as next digit of the result. 
Result so far: 79.0
If we take 45 away from 49, we end up with 4.
Append the next digit (1) from the dividend to 4 and continue with: 41 / 5

On to step 4:
41 divided by 5 is 8 with a remainder of 1.
Use 8 as the next digit of our solution. 
Result so far: 798.0
Subtract 40 from 41 to get 1.
Fetch the next digit (5) from the dividend, attach it to 1 and continue: 15 / 5

Advancing to step 5:
If we divide 15 by 5, we get 3 and a remainder of 0.
Record the quotient 3 as the next digit in the result. 
Result so far: 7983.0
The remainder is 0 after subtracting 15 from 15.
Include the next digit (8) from the dividend after 0, then repeat: 8 / 5

Moving on to step 6:
When dividing 8 by 5, we get 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 79831.0
Subtract 5 from 8 to get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

Advancing to step 7:
5 can be fit into 30 6 times, resulting in a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 79831.6
If we subtract 30 from 30, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
0 divided by 5 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 79831.6
The remainder is 0 after subtracting 0 from 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 9:
5 goes into 0 0 times with a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 79831.6
If we subtract 0 from 0, we get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The quotient of the division is 79831.6, and the remainder is 0.0.