We're dividing 396877 by 58 
Let's see how many times 58 fits into 396877.

Going ahead to step 1:
When dividing 3 by 58, 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 / 58

Going ahead to step 2:
58 goes into 39 0 times with a remainder of 39.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 39 to get 39.
Fetch the next digit (6) from the dividend, attach it to 39 and continue: 396 / 58

Advancing to step 3:
58 goes into 396 6 times with a remainder of 48.
Record the quotient 6 as the next digit in the result. 
Result so far: 6.0
The remainder is 48 after subtracting 348 from 396.
Fetch the next digit (8) from the dividend, attach it to 48 and continue: 488 / 58

Going ahead to step 4:
58 goes into 488 8 times with a remainder of 24.
The number 8 becomes the next digit in our result. 
Result so far: 68.0
If we take 464 away from 488, we end up with 24.
Grab the next digit (7) from the dividend, add it to 24, then carry on: 247 / 58

Let's proceed to step 5:
If we divide 247 by 58, we get 4 and a remainder of 15.
The next digit of our result is 4. 
Result so far: 684.0
If we subtract 232 from 247, we get 15.
Fetch the next digit (7) from the dividend, attach it to 15 and continue: 157 / 58

Moving on to step 6:
58 goes into 157 2 times with a remainder of 41.
Write down 2 as next digit of the result. 
Result so far: 6842.0
The remainder is 41 after subtracting 116 from 157.
Since there are no more digits in the dividend, we add a zero to the remainder making it 410, and continue the process.

Step 7:
58 can be fit into 410 7 times, resulting in a remainder of 4.
Use 7 as the next digit of our solution. 
Result so far: 6842.7
Deduct 406 from 410 and we're left with 4.
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: 6842.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.

Step 9:
400 divided by 58 is 6 with a remainder of 52.
The number 6 becomes the next digit in our result. 
Result so far: 6842.706
If we subtract 348 from 400, we get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Step 10:
The number 58 fits into 520 8 times, leaving a remainder of 56.
The next digit of our result is 8. 
Result so far: 6842.7068
Subtracting 464 from 520 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Let's proceed to 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: 6842.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.

Let's proceed to step 12:
380 divided by 58 is 6 with a remainder of 32.
Write down 6 as next digit of the result. 
Result so far: 6842.706896
If we take 348 away from 380, we end up with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Advancing to step 13:
320 divided by 58 is 5 with a remainder of 30.
The number 5 becomes the next digit in our result. 
Result so far: 6842.7068965
If we subtract 290 from 320, we get 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 14:
300 divided by 58 is 5 with a remainder of 10.
Put 5 as the next digit of the answer. 
Result so far: 6842.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.

The final result is 6842.70689655 with a remainder of 1e-08.