40058877 ÷ 638 
Let's see how many times 638 fits into 40058877.

Moving on to step 1:
4 divided by 638 is 0 with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 638

Step 2:
If we divide 40 by 638, we get 0 and a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Deduct 0 from 40 and we're left with 40.
Take the next digit (0) from the dividend and append it to 40, then repeat: 400 / 638

Step 3:
638 can be fit into 400 0 times, resulting in a remainder of 400.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 400 leaves us with 400.
Include the next digit (5) from the dividend after 400, then repeat: 4005 / 638

Going ahead to step 4:
4005 divided by 638 is 6 with a remainder of 177.
The next digit of our result is 6. 
Result so far: 6.0
Subtracting 3828 from 4005 leaves us with 177.
Take the next digit (8) from the dividend and append it to 177, then repeat: 1778 / 638

Going ahead to step 5:
When dividing 1778 by 638, we get 2 with a remainder of 502.
The number 2 becomes the next digit in our result. 
Result so far: 62.0
The remainder is 502 after subtracting 1276 from 1778.
Append the next digit (8) from the dividend to 502 and continue with: 5028 / 638

Moving on to step 6:
If we divide 5028 by 638, we get 7 and a remainder of 562.
Use 7 as the next digit of our solution. 
Result so far: 627.0
Subtract 4466 from 5028 to get 562.
Grab the next digit (7) from the dividend, add it to 562, then carry on: 5627 / 638

On to step 7:
When dividing 5627 by 638, we get 8 with a remainder of 523.
The number 8 becomes the next digit in our result. 
Result so far: 6278.0
If we take 5104 away from 5627, we end up with 523.
Include the next digit (7) from the dividend after 523, then repeat: 5237 / 638

Moving on to step 8:
638 can be fit into 5237 8 times, resulting in a remainder of 133.
Record the quotient 8 as the next digit in the result. 
Result so far: 62788.0
If we take 5104 away from 5237, we end up with 133.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1330, and continue the process.

Step 9:
When dividing 1330 by 638, we get 2 with a remainder of 54.
Put 2 as the next digit of the answer. 
Result so far: 62788.2
If we subtract 1276 from 1330, we get 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Going ahead to step 10:
When dividing 540 by 638, we get 0 with a remainder of 540.
Write down 0 as next digit of the result. 
Result so far: 62788.2
Deduct 0 from 540 and we're left with 540.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5400, and continue the process.

Going ahead to step 11:
When dividing 5400 by 638, we get 8 with a remainder of 296.
Record the quotient 8 as the next digit in the result. 
Result so far: 62788.208
If we subtract 5104 from 5400, we get 296.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2960, and continue the process.

Advancing to step 12:
638 goes into 2960 4 times with a remainder of 408.
Record the quotient 4 as the next digit in the result. 
Result so far: 62788.2084
Subtracting 2552 from 2960 leaves us with 408.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4080, and continue the process.

Step 13:
The number 638 fits into 4080 6 times, leaving a remainder of 252.
Use 6 as the next digit of our solution. 
Result so far: 62788.20846
Deduct 3828 from 4080 and we're left with 252.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2520, and continue the process.

Moving on to step 14:
When dividing 2520 by 638, we get 3 with a remainder of 606.
The number 3 becomes the next digit in our result. 
Result so far: 62788.208463
The remainder is 606 after subtracting 1914 from 2520.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6060, and continue the process.

Going ahead to step 15:
638 goes into 6060 9 times with a remainder of 318.
The number 9 becomes the next digit in our result. 
Result so far: 62788.2084639
If we subtract 5742 from 6060, we get 318.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3180, and continue the process.

Step 16:
The number 638 fits into 3180 4 times, leaving a remainder of 628.
The next digit of our result is 4. 
Result so far: 62788.20846394
If we subtract 2552 from 3180, we get 628.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6280, and continue the process.

The final result is 62788.20846394 with a remainder of 6.28e-07.