We divide 586340 by 87
We want to divide 586340 by 87.

Advancing to step 1:
If we divide 5 by 87, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Append the next digit (8) from the dividend to 5 and continue with: 58 / 87

Going ahead to step 2:
58 divided by 87 is 0 with a remainder of 58.
Put 0 as the next digit of the answer. 
Result so far: 0.0
The remainder is 58 after subtracting 0 from 58.
Bring next digit (6) of the dividend behind the 58 and repeat the process: 586 / 87

Going ahead to step 3:
87 can be fit into 586 6 times, resulting in a remainder of 64.
Put 6 as the next digit of the answer. 
Result so far: 6.0
Subtract 522 from 586 to get 64.
Include the next digit (3) from the dividend after 64, then repeat: 643 / 87

Moving on to step 4:
643 divided by 87 is 7 with a remainder of 34.
The number 7 becomes the next digit in our result. 
Result so far: 67.0
Deduct 609 from 643 and we're left with 34.
Include the next digit (4) from the dividend after 34, then repeat: 344 / 87

Let's proceed to step 5:
87 goes into 344 3 times with a remainder of 83.
Use 3 as the next digit of our solution. 
Result so far: 673.0
Subtracting 261 from 344 leaves us with 83.
Take the next digit (0) from the dividend and append it to 83, then repeat: 830 / 87

Going ahead to step 6:
830 divided by 87 is 9 with a remainder of 47.
Record the quotient 9 as the next digit in the result. 
Result so far: 6739.0
If we subtract 783 from 830, we get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Going ahead to step 7:
87 can be fit into 470 5 times, resulting in a remainder of 35.
Use 5 as the next digit of our solution. 
Result so far: 6739.5
Subtracting 435 from 470 leaves us with 35.
Since there are no more digits in the dividend, we add a zero to the remainder making it 350, and continue the process.

Step 8:
87 goes into 350 4 times with a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 6739.54
If we subtract 348 from 350, we get 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Moving on to step 9:
87 can be fit into 20 0 times, resulting in a remainder of 20.
Use 0 as the next digit of our solution. 
Result so far: 6739.54
If we take 0 away from 20, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Step 10:
200 divided by 87 is 2 with a remainder of 26.
Write down 2 as next digit of the result. 
Result so far: 6739.5402
If we subtract 174 from 200, we get 26.
Since there are no more digits in the dividend, we add a zero to the remainder making it 260, and continue the process.

Step 11:
The number 87 fits into 260 2 times, leaving a remainder of 86.
Use 2 as the next digit of our solution. 
Result so far: 6739.54022
Subtracting 174 from 260 leaves us with 86.
Since there are no more digits in the dividend, we add a zero to the remainder making it 860, and continue the process.

The final result is 6739.54022 with a remainder of 8.6e-05.