We look at the division of 1039866 by 642 
We're looking to find how many times 642 goes into 1039866.

Let's proceed to step 1:
The number 642 fits into 1 0 times, leaving a remainder of 1.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 1 after subtracting 0 from 1.
Fetch the next digit (0) from the dividend, attach it to 1 and continue: 10 / 642

On to step 2:
10 divided by 642 is 0 with a remainder of 10.
Write down 0 as next digit of the result. 
Result so far: 0.0
Deduct 0 from 10 and we're left with 10.
Bring next digit (3) of the dividend behind the 10 and repeat the process: 103 / 642

Step 3:
If we divide 103 by 642, we get 0 and a remainder of 103.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 103, we get 103.
Grab the next digit (9) from the dividend, add it to 103, then carry on: 1039 / 642

Let's proceed to step 4:
If we divide 1039 by 642, we get 1 and a remainder of 397.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 642 from 1039 leaves us with 397.
Grab the next digit (8) from the dividend, add it to 397, then carry on: 3978 / 642

Step 5:
642 goes into 3978 6 times with a remainder of 126.
Record the quotient 6 as the next digit in the result. 
Result so far: 16.0
If we subtract 3852 from 3978, we get 126.
Grab the next digit (6) from the dividend, add it to 126, then carry on: 1266 / 642

Moving on to step 6:
1266 divided by 642 is 1 with a remainder of 624.
Record the quotient 1 as the next digit in the result. 
Result so far: 161.0
Deduct 642 from 1266 and we're left with 624.
Grab the next digit (6) from the dividend, add it to 624, then carry on: 6246 / 642

Step 7:
The number 642 fits into 6246 9 times, leaving a remainder of 468.
The number 9 becomes the next digit in our result. 
Result so far: 1619.0
The remainder is 468 after subtracting 5778 from 6246.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4680, and continue the process.

Moving on to step 8:
4680 divided by 642 is 7 with a remainder of 186.
The next digit of our result is 7. 
Result so far: 1619.7
The remainder is 186 after subtracting 4494 from 4680.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1860, and continue the process.

Moving on to step 9:
642 goes into 1860 2 times with a remainder of 576.
Use 2 as the next digit of our solution. 
Result so far: 1619.72
Subtract 1284 from 1860 to get 576.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5760, and continue the process.

Let's proceed to step 10:
642 can be fit into 5760 8 times, resulting in a remainder of 624.
Put 8 as the next digit of the answer. 
Result so far: 1619.728
The remainder is 624 after subtracting 5136 from 5760.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6240, and continue the process.

On to step 11:
The number 642 fits into 6240 9 times, leaving a remainder of 462.
Put 9 as the next digit of the answer. 
Result so far: 1619.7289
Subtract 5778 from 6240 to get 462.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4620, and continue the process.

Advancing to step 12:
The number 642 fits into 4620 7 times, leaving a remainder of 126.
Put 7 as the next digit of the answer. 
Result so far: 1619.72897
If we subtract 4494 from 4620, we get 126.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1260, and continue the process.

Let's proceed to step 13:
642 can be fit into 1260 1 times, resulting in a remainder of 618.
Use 1 as the next digit of our solution. 
Result so far: 1619.728971
The remainder is 618 after subtracting 642 from 1260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6180, and continue the process.

Step 14:
The number 642 fits into 6180 9 times, leaving a remainder of 402.
Write down 9 as next digit of the result. 
Result so far: 1619.7289719
Subtracting 5778 from 6180 leaves us with 402.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4020, and continue the process.

Advancing to step 15:
If we divide 4020 by 642, we get 6 and a remainder of 168.
Record the quotient 6 as the next digit in the result. 
Result so far: 1619.72897196
Deduct 3852 from 4020 and we're left with 168.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

In conclusion, the division gives 1619.72897196 with a balance of 1.68e-07.