We're dividing 397230 by 586 
Let's see how many times 586 fits into 397230.

Let's proceed to step 1:
3 divided by 586 is 0 with a remainder of 3.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Fetch the next digit (9) from the dividend, attach it to 3 and continue: 39 / 586

On to step 2:
586 goes into 39 0 times with a remainder of 39.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 39 leaves us with 39.
Append the next digit (7) from the dividend to 39 and continue with: 397 / 586

Moving on to step 3:
397 divided by 586 is 0 with a remainder of 397.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we take 0 away from 397, we end up with 397.
Grab the next digit (2) from the dividend, add it to 397, then carry on: 3972 / 586

On to step 4:
3972 divided by 586 is 6 with a remainder of 456.
The number 6 becomes the next digit in our result. 
Result so far: 6.0
Deduct 3516 from 3972 and we're left with 456.
Include the next digit (3) from the dividend after 456, then repeat: 4563 / 586

Let's proceed to step 5:
If we divide 4563 by 586, we get 7 and a remainder of 461.
Write down 7 as next digit of the result. 
Result so far: 67.0
Deduct 4102 from 4563 and we're left with 461.
Take the next digit (0) from the dividend and append it to 461, then repeat: 4610 / 586

Moving on to step 6:
If we divide 4610 by 586, we get 7 and a remainder of 508.
Record the quotient 7 as the next digit in the result. 
Result so far: 677.0
Deduct 4102 from 4610 and we're left with 508.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5080, and continue the process.

Going ahead to step 7:
When dividing 5080 by 586, we get 8 with a remainder of 392.
The number 8 becomes the next digit in our result. 
Result so far: 677.8
The remainder is 392 after subtracting 4688 from 5080.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

Advancing to step 8:
586 can be fit into 3920 6 times, resulting in a remainder of 404.
Record the quotient 6 as the next digit in the result. 
Result so far: 677.86
Subtracting 3516 from 3920 leaves us with 404.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4040, and continue the process.

Let's proceed to step 9:
4040 divided by 586 is 6 with a remainder of 524.
The next digit of our result is 6. 
Result so far: 677.866
The remainder is 524 after subtracting 3516 from 4040.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5240, and continue the process.

The final outcome is 677.866, with a leftover of 0.0524.