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

Going ahead to step 1:
1 divided by 667 is 0 with a remainder of 1.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 1 leaves us with 1.
Take the next digit (2) from the dividend and append it to 1, then repeat: 12 / 667

Moving on to step 2:
667 can be fit into 12 0 times, resulting in a remainder of 12.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 12 to get 12.
Bring next digit (6) of the dividend behind the 12 and repeat the process: 126 / 667

Moving on to step 3:
667 goes into 126 0 times with a remainder of 126.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 126 and we're left with 126.
Take the next digit (6) from the dividend and append it to 126, then repeat: 1266 / 667

On to step 4:
667 can be fit into 1266 1 times, resulting in a remainder of 599.
Record the quotient 1 as the next digit in the result. 
Result so far: 1.0
Subtract 667 from 1266 to get 599.
Take the next digit (4) from the dividend and append it to 599, then repeat: 5994 / 667

Going ahead to step 5:
667 can be fit into 5994 8 times, resulting in a remainder of 658.
The number 8 becomes the next digit in our result. 
Result so far: 18.0
The remainder is 658 after subtracting 5336 from 5994.
Grab the next digit (9) from the dividend, add it to 658, then carry on: 6589 / 667

Moving on to step 6:
667 can be fit into 6589 9 times, resulting in a remainder of 586.
Record the quotient 9 as the next digit in the result. 
Result so far: 189.0
Subtracting 6003 from 6589 leaves us with 586.
Grab the next digit (8) from the dividend, add it to 586, then carry on: 5868 / 667

Advancing to step 7:
667 goes into 5868 8 times with a remainder of 532.
Use 8 as the next digit of our solution. 
Result so far: 1898.0
Deduct 5336 from 5868 and we're left with 532.
Include the next digit (5) from the dividend after 532, then repeat: 5325 / 667

On to step 8:
The number 667 fits into 5325 7 times, leaving a remainder of 656.
Write down 7 as next digit of the result. 
Result so far: 18987.0
If we subtract 4669 from 5325, we get 656.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6560, and continue the process.

Let's proceed to step 9:
667 goes into 6560 9 times with a remainder of 557.
Use 9 as the next digit of our solution. 
Result so far: 18987.9
Subtracting 6003 from 6560 leaves us with 557.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5570, and continue the process.

Moving on to step 10:
If we divide 5570 by 667, we get 8 and a remainder of 234.
The next digit of our result is 8. 
Result so far: 18987.98
The remainder is 234 after subtracting 5336 from 5570.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2340, and continue the process.

Moving on to step 11:
667 can be fit into 2340 3 times, resulting in a remainder of 339.
Record the quotient 3 as the next digit in the result. 
Result so far: 18987.983
The remainder is 339 after subtracting 2001 from 2340.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3390, and continue the process.

Going ahead to step 12:
667 can be fit into 3390 5 times, resulting in a remainder of 55.
The next digit of our result is 5. 
Result so far: 18987.9835
Subtracting 3335 from 3390 leaves us with 55.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

Step 13:
550 divided by 667 is 0 with a remainder of 550.
The next digit of our result is 0. 
Result so far: 18987.9835
If we subtract 0 from 550, we get 550.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5500, and continue the process.

On to step 14:
667 can be fit into 5500 8 times, resulting in a remainder of 164.
The next digit of our result is 8. 
Result so far: 18987.983508
Subtract 5336 from 5500 to get 164.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1640, and continue the process.

Advancing to step 15:
1640 divided by 667 is 2 with a remainder of 306.
The next digit of our result is 2. 
Result so far: 18987.9835082
If we take 1334 away from 1640, we end up with 306.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3060, and continue the process.

Going ahead to step 16:
667 goes into 3060 4 times with a remainder of 392.
The number 4 becomes the next digit in our result. 
Result so far: 18987.98350824
The remainder is 392 after subtracting 2668 from 3060.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3920, and continue the process.

The final result is 18987.98350824 with a remainder of 3.92e-07.