We're dividing 12530387 by 585 
We want to divide 12530387 by 585.

Step 1:
When dividing 1 by 585, we get 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 1 to get 1.
Fetch the next digit (2) from the dividend, attach it to 1 and continue: 12 / 585

On to step 2:
12 divided by 585 is 0 with a remainder of 12.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 12 leaves us with 12.
Fetch the next digit (5) from the dividend, attach it to 12 and continue: 125 / 585

Step 3:
If we divide 125 by 585, we get 0 and a remainder of 125.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 125, we end up with 125.
Bring next digit (3) of the dividend behind the 125 and repeat the process: 1253 / 585

On to step 4:
The number 585 fits into 1253 2 times, leaving a remainder of 83.
Put 2 as the next digit of the answer. 
Result so far: 2.0
Subtract 1170 from 1253 to get 83.
Bring next digit (0) of the dividend behind the 83 and repeat the process: 830 / 585

Going ahead to step 5:
The number 585 fits into 830 1 times, leaving a remainder of 245.
Record the quotient 1 as the next digit in the result. 
Result so far: 21.0
Subtracting 585 from 830 leaves us with 245.
Take the next digit (3) from the dividend and append it to 245, then repeat: 2453 / 585

Let's proceed to step 6:
If we divide 2453 by 585, we get 4 and a remainder of 113.
Write down 4 as next digit of the result. 
Result so far: 214.0
If we take 2340 away from 2453, we end up with 113.
Bring next digit (8) of the dividend behind the 113 and repeat the process: 1138 / 585

Let's proceed to step 7:
If we divide 1138 by 585, we get 1 and a remainder of 553.
Record the quotient 1 as the next digit in the result. 
Result so far: 2141.0
Subtract 585 from 1138 to get 553.
Include the next digit (7) from the dividend after 553, then repeat: 5537 / 585

On to step 8:
5537 divided by 585 is 9 with a remainder of 272.
The number 9 becomes the next digit in our result. 
Result so far: 21419.0
If we take 5265 away from 5537, we end up with 272.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2720, and continue the process.

Step 9:
585 goes into 2720 4 times with a remainder of 380.
Record the quotient 4 as the next digit in the result. 
Result so far: 21419.4
The remainder is 380 after subtracting 2340 from 2720.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3800, and continue the process.

Going ahead to step 10:
585 goes into 3800 6 times with a remainder of 290.
Use 6 as the next digit of our solution. 
Result so far: 21419.46
Subtract 3510 from 3800 to get 290.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2900, and continue the process.

Moving on to step 11:
585 goes into 2900 4 times with a remainder of 560.
Write down 4 as next digit of the result. 
Result so far: 21419.464
Deduct 2340 from 2900 and we're left with 560.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5600, and continue the process.

Moving on to step 12:
When dividing 5600 by 585, we get 9 with a remainder of 335.
Put 9 as the next digit of the answer. 
Result so far: 21419.4649
Subtract 5265 from 5600 to get 335.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3350, and continue the process.

Advancing to step 13:
If we divide 3350 by 585, we get 5 and a remainder of 425.
The number 5 becomes the next digit in our result. 
Result so far: 21419.46495
Subtracting 2925 from 3350 leaves us with 425.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4250, and continue the process.

Advancing to step 14:
585 goes into 4250 7 times with a remainder of 155.
Use 7 as the next digit of our solution. 
Result so far: 21419.464957
Subtract 4095 from 4250 to get 155.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1550, and continue the process.

Step 15:
585 can be fit into 1550 2 times, resulting in a remainder of 380.
Write down 2 as next digit of the result. 
Result so far: 21419.4649572
The remainder is 380 after subtracting 1170 from 1550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3800, and continue the process.

Let's proceed to step 16:
When dividing 3800 by 585, we get 6 with a remainder of 290.
The number 6 becomes the next digit in our result. 
Result so far: 21419.46495726
The remainder is 290 after subtracting 3510 from 3800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2900, and continue the process.

The final result is 21419.46495726 with a remainder of 2.9e-07.