Let's divide 12987379 by 987
We want to figure out the number of times 12987379 can be divided by 987.

Let's proceed to step 1:
987 can be fit into 1 0 times, resulting in a remainder of 1.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 987

Let's proceed to step 2:
When dividing 12 by 987, we get 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.
Include the next digit (9) from the dividend after 12, then repeat: 129 / 987

Going ahead to step 3:
When dividing 129 by 987, we get 0 with a remainder of 129.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 129 leaves us with 129.
Grab the next digit (8) from the dividend, add it to 129, then carry on: 1298 / 987

Advancing to step 4:
1298 divided by 987 is 1 with a remainder of 311.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
If we take 987 away from 1298, we end up with 311.
Include the next digit (7) from the dividend after 311, then repeat: 3117 / 987

Moving on to step 5:
The number 987 fits into 3117 3 times, leaving a remainder of 156.
The number 3 becomes the next digit in our result. 
Result so far: 13.0
Deduct 2961 from 3117 and we're left with 156.
Bring next digit (3) of the dividend behind the 156 and repeat the process: 1563 / 987

Advancing to step 6:
When dividing 1563 by 987, we get 1 with a remainder of 576.
Write down 1 as next digit of the result. 
Result so far: 131.0
If we subtract 987 from 1563, we get 576.
Include the next digit (7) from the dividend after 576, then repeat: 5767 / 987

Going ahead to step 7:
If we divide 5767 by 987, we get 5 and a remainder of 832.
Use 5 as the next digit of our solution. 
Result so far: 1315.0
The remainder is 832 after subtracting 4935 from 5767.
Include the next digit (9) from the dividend after 832, then repeat: 8329 / 987

Step 8:
When dividing 8329 by 987, we get 8 with a remainder of 433.
Put 8 as the next digit of the answer. 
Result so far: 13158.0
Subtracting 7896 from 8329 leaves us with 433.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4330, and continue the process.

Let's proceed to step 9:
If we divide 4330 by 987, we get 4 and a remainder of 382.
The number 4 becomes the next digit in our result. 
Result so far: 13158.4
Deduct 3948 from 4330 and we're left with 382.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3820, and continue the process.

Step 10:
987 goes into 3820 3 times with a remainder of 859.
Write down 3 as next digit of the result. 
Result so far: 13158.43
If we take 2961 away from 3820, we end up with 859.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8590, and continue the process.

Step 11:
When dividing 8590 by 987, we get 8 with a remainder of 694.
Write down 8 as next digit of the result. 
Result so far: 13158.438
The remainder is 694 after subtracting 7896 from 8590.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6940, and continue the process.

Advancing to step 12:
If we divide 6940 by 987, we get 7 and a remainder of 31.
Record the quotient 7 as the next digit in the result. 
Result so far: 13158.4387
The remainder is 31 after subtracting 6909 from 6940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 310, and continue the process.

Going ahead to step 13:
When dividing 310 by 987, we get 0 with a remainder of 310.
Put 0 as the next digit of the answer. 
Result so far: 13158.4387
Subtracting 0 from 310 leaves us with 310.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3100, and continue the process.

Advancing to step 14:
If we divide 3100 by 987, we get 3 and a remainder of 139.
The next digit of our result is 3. 
Result so far: 13158.438703
If we subtract 2961 from 3100, we get 139.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1390, and continue the process.

Step 15:
If we divide 1390 by 987, we get 1 and a remainder of 403.
Record the quotient 1 as the next digit in the result. 
Result so far: 13158.4387031
Subtract 987 from 1390 to get 403.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4030, and continue the process.

Let's proceed to step 16:
When dividing 4030 by 987, we get 4 with a remainder of 82.
Use 4 as the next digit of our solution. 
Result so far: 13158.43870314
If we subtract 3948 from 4030, we get 82.
Since there are no more digits in the dividend, we add a zero to the remainder making it 820, and continue the process.

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