40344939 divided by 642 
We're looking to find how many times 642 goes into 40344939.

Advancing to step 1:
The number 642 fits into 4 0 times, leaving a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 642

Moving on to step 2:
642 goes into 40 0 times with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Include the next digit (3) from the dividend after 40, then repeat: 403 / 642

Moving on to step 3:
642 can be fit into 403 0 times, resulting in a remainder of 403.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 403, we get 403.
Take the next digit (4) from the dividend and append it to 403, then repeat: 4034 / 642

Step 4:
4034 divided by 642 is 6 with a remainder of 182.
Use 6 as the next digit of our solution. 
Result so far: 6.0
If we subtract 3852 from 4034, we get 182.
Append the next digit (4) from the dividend to 182 and continue with: 1824 / 642

On to step 5:
When dividing 1824 by 642, we get 2 with a remainder of 540.
Use 2 as the next digit of our solution. 
Result so far: 62.0
Subtracting 1284 from 1824 leaves us with 540.
Include the next digit (9) from the dividend after 540, then repeat: 5409 / 642

Let's proceed to step 6:
642 goes into 5409 8 times with a remainder of 273.
Write down 8 as next digit of the result. 
Result so far: 628.0
Deduct 5136 from 5409 and we're left with 273.
Fetch the next digit (3) from the dividend, attach it to 273 and continue: 2733 / 642

Going ahead to step 7:
If we divide 2733 by 642, we get 4 and a remainder of 165.
Use 4 as the next digit of our solution. 
Result so far: 6284.0
Deduct 2568 from 2733 and we're left with 165.
Include the next digit (9) from the dividend after 165, then repeat: 1659 / 642

On to step 8:
1659 divided by 642 is 2 with a remainder of 375.
The next digit of our result is 2. 
Result so far: 62842.0
The remainder is 375 after subtracting 1284 from 1659.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3750, and continue the process.

Let's proceed to step 9:
When dividing 3750 by 642, we get 5 with a remainder of 540.
The number 5 becomes the next digit in our result. 
Result so far: 62842.5
Subtract 3210 from 3750 to get 540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5400, and continue the process.

Step 10:
5400 divided by 642 is 8 with a remainder of 264.
Write down 8 as next digit of the result. 
Result so far: 62842.58
The remainder is 264 after subtracting 5136 from 5400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2640, and continue the process.

Moving on to step 11:
When dividing 2640 by 642, we get 4 with a remainder of 72.
Put 4 as the next digit of the answer. 
Result so far: 62842.584
If we take 2568 away from 2640, we end up with 72.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Going ahead to step 12:
642 can be fit into 720 1 times, resulting in a remainder of 78.
The number 1 becomes the next digit in our result. 
Result so far: 62842.5841
If we subtract 642 from 720, we get 78.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Moving on to step 13:
642 goes into 780 1 times with a remainder of 138.
Write down 1 as next digit of the result. 
Result so far: 62842.58411
Subtract 642 from 780 to get 138.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1380, and continue the process.

The quotient of the division is 62842.58411, and the remainder is 0.000138.