We look at the division of 398791 by 58 
We want to divide 398791 by 58.

Step 1:
3 divided by 58 is 0 with a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 3 after subtracting 0 from 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 58

On to step 2:
When dividing 39 by 58, we get 0 with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 39 after subtracting 0 from 39.
Grab the next digit (8) from the dividend, add it to 39, then carry on: 398 / 58

Moving on to step 3:
When dividing 398 by 58, we get 6 with a remainder of 50.
Write down 6 as next digit of the result. 
Result so far: 6.0
The remainder is 50 after subtracting 348 from 398.
Bring next digit (7) of the dividend behind the 50 and repeat the process: 507 / 58

Let's proceed to step 4:
507 divided by 58 is 8 with a remainder of 43.
Write down 8 as next digit of the result. 
Result so far: 68.0
Subtract 464 from 507 to get 43.
Grab the next digit (9) from the dividend, add it to 43, then carry on: 439 / 58

Going ahead to step 5:
When dividing 439 by 58, we get 7 with a remainder of 33.
The next digit of our result is 7. 
Result so far: 687.0
Deduct 406 from 439 and we're left with 33.
Bring next digit (1) of the dividend behind the 33 and repeat the process: 331 / 58

Step 6:
58 can be fit into 331 5 times, resulting in a remainder of 41.
The next digit of our result is 5. 
Result so far: 6875.0
Subtract 290 from 331 to get 41.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

On to step 7:
410 divided by 58 is 7 with a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 6875.7
The remainder is 4 after subtracting 406 from 410.
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 8:
58 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 6875.7
Subtracting 0 from 40 leaves us with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 9:
58 goes into 400 6 times with a remainder of 52.
Write down 6 as next digit of the result. 
Result so far: 6875.706
If we take 348 away from 400, we end up with 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Going ahead to step 10:
If we divide 520 by 58, we get 8 and a remainder of 56.
Use 8 as the next digit of our solution. 
Result so far: 6875.7068
The remainder is 56 after subtracting 464 from 520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Step 11:
The number 58 fits into 560 9 times, leaving a remainder of 38.
The next digit of our result is 9. 
Result so far: 6875.70689
Subtract 522 from 560 to get 38.
Since there are no more digits in the dividend, we add a zero to the remainder making it 380, and continue the process.

Step 12:
58 goes into 380 6 times with a remainder of 32.
Write down 6 as next digit of the result. 
Result so far: 6875.706896
The remainder is 32 after subtracting 348 from 380.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Step 13:
The number 58 fits into 320 5 times, leaving a remainder of 30.
Record the quotient 5 as the next digit in the result. 
Result so far: 6875.7068965
Deduct 290 from 320 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.

Going ahead to step 14:
The number 58 fits into 300 5 times, leaving a remainder of 10.
The next digit of our result is 5. 
Result so far: 6875.70689655
Subtract 290 from 300 to 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.

After the division, we end up with 6875.70689655 and a remainder of 1e-08.