We're dividing 22676584 by 642 
We want to figure out the number of times 22676584 can be divided by 642.

Advancing to step 1:
If we divide 2 by 642, we get 0 and a remainder of 2.
Write down 0 as next digit of the result. 
Result so far: 0.0
If we subtract 0 from 2, we get 2.
Append the next digit (2) from the dividend to 2 and continue with: 22 / 642

Going ahead to step 2:
When dividing 22 by 642, we get 0 with a remainder of 22.
The next digit of our result is 0. 
Result so far: 0.0
Subtract 0 from 22 to get 22.
Take the next digit (6) from the dividend and append it to 22, then repeat: 226 / 642

Moving on to step 3:
642 goes into 226 0 times with a remainder of 226.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 226 leaves us with 226.
Bring next digit (7) of the dividend behind the 226 and repeat the process: 2267 / 642

Step 4:
642 goes into 2267 3 times with a remainder of 341.
Put 3 as the next digit of the answer. 
Result so far: 3.0
Deduct 1926 from 2267 and we're left with 341.
Take the next digit (6) from the dividend and append it to 341, then repeat: 3416 / 642

Advancing to step 5:
When dividing 3416 by 642, we get 5 with a remainder of 206.
Put 5 as the next digit of the answer. 
Result so far: 35.0
If we take 3210 away from 3416, we end up with 206.
Bring next digit (5) of the dividend behind the 206 and repeat the process: 2065 / 642

On to step 6:
If we divide 2065 by 642, we get 3 and a remainder of 139.
Use 3 as the next digit of our solution. 
Result so far: 353.0
The remainder is 139 after subtracting 1926 from 2065.
Append the next digit (8) from the dividend to 139 and continue with: 1398 / 642

Let's proceed to step 7:
642 goes into 1398 2 times with a remainder of 114.
Use 2 as the next digit of our solution. 
Result so far: 3532.0
If we take 1284 away from 1398, we end up with 114.
Grab the next digit (4) from the dividend, add it to 114, then carry on: 1144 / 642

Step 8:
If we divide 1144 by 642, we get 1 and a remainder of 502.
Use 1 as the next digit of our solution. 
Result so far: 35321.0
The remainder is 502 after subtracting 642 from 1144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5020, and continue the process.

Advancing to step 9:
If we divide 5020 by 642, we get 7 and a remainder of 526.
Record the quotient 7 as the next digit in the result. 
Result so far: 35321.7
If we subtract 4494 from 5020, we get 526.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5260, and continue the process.

Let's proceed to step 10:
If we divide 5260 by 642, we get 8 and a remainder of 124.
Write down 8 as next digit of the result. 
Result so far: 35321.78
The remainder is 124 after subtracting 5136 from 5260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1240, and continue the process.

Moving on to step 11:
The number 642 fits into 1240 1 times, leaving a remainder of 598.
The number 1 becomes the next digit in our result. 
Result so far: 35321.781
If we subtract 642 from 1240, we get 598.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5980, and continue the process.

Advancing to step 12:
If we divide 5980 by 642, we get 9 and a remainder of 202.
Put 9 as the next digit of the answer. 
Result so far: 35321.7819
The remainder is 202 after subtracting 5778 from 5980.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2020, and continue the process.

On to step 13:
2020 divided by 642 is 3 with a remainder of 94.
Record the quotient 3 as the next digit in the result. 
Result so far: 35321.78193
If we subtract 1926 from 2020, we get 94.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Step 14:
940 divided by 642 is 1 with a remainder of 298.
Write down 1 as next digit of the result. 
Result so far: 35321.781931
The remainder is 298 after subtracting 642 from 940.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2980, and continue the process.

Step 15:
642 can be fit into 2980 4 times, resulting in a remainder of 412.
Record the quotient 4 as the next digit in the result. 
Result so far: 35321.7819314
Subtract 2568 from 2980 to get 412.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4120, and continue the process.

Advancing to step 16:
If we divide 4120 by 642, we get 6 and a remainder of 268.
Put 6 as the next digit of the answer. 
Result so far: 35321.78193146
If we take 3852 away from 4120, we end up with 268.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2680, and continue the process.

After the division, we end up with 35321.78193146 and a remainder of 2.68e-07.