We divide 40058111 by 508
Let's see how many times 508 fits into 40058111.

Let's proceed to step 1:
If we divide 4 by 508, we get 0 and 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.
Append the next digit (0) from the dividend to 4 and continue with: 40 / 508

Let's proceed to step 2:
If we divide 40 by 508, we get 0 and a remainder of 40.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Include the next digit (0) from the dividend after 40, then repeat: 400 / 508

Going ahead to step 3:
The number 508 fits into 400 0 times, leaving a remainder of 400.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we take 0 away from 400, we end up with 400.
Grab the next digit (5) from the dividend, add it to 400, then carry on: 4005 / 508

Step 4:
4005 divided by 508 is 7 with a remainder of 449.
Write down 7 as next digit of the result. 
Result so far: 7.0
Subtracting 3556 from 4005 leaves us with 449.
Grab the next digit (8) from the dividend, add it to 449, then carry on: 4498 / 508

Moving on to step 5:
508 goes into 4498 8 times with a remainder of 434.
Write down 8 as next digit of the result. 
Result so far: 78.0
Deduct 4064 from 4498 and we're left with 434.
Take the next digit (1) from the dividend and append it to 434, then repeat: 4341 / 508

On to step 6:
508 can be fit into 4341 8 times, resulting in a remainder of 277.
Put 8 as the next digit of the answer. 
Result so far: 788.0
Deduct 4064 from 4341 and we're left with 277.
Fetch the next digit (1) from the dividend, attach it to 277 and continue: 2771 / 508

Step 7:
2771 divided by 508 is 5 with a remainder of 231.
The number 5 becomes the next digit in our result. 
Result so far: 7885.0
Subtract 2540 from 2771 to get 231.
Take the next digit (1) from the dividend and append it to 231, then repeat: 2311 / 508

Going ahead to step 8:
508 goes into 2311 4 times with a remainder of 279.
Record the quotient 4 as the next digit in the result. 
Result so far: 78854.0
If we take 2032 away from 2311, we end up with 279.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2790, and continue the process.

Advancing to step 9:
The number 508 fits into 2790 5 times, leaving a remainder of 250.
Use 5 as the next digit of our solution. 
Result so far: 78854.5
If we subtract 2540 from 2790, we get 250.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2500, and continue the process.

Going ahead to step 10:
If we divide 2500 by 508, we get 4 and a remainder of 468.
The number 4 becomes the next digit in our result. 
Result so far: 78854.54
Subtract 2032 from 2500 to get 468.
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 11:
When dividing 4680 by 508, we get 9 with a remainder of 108.
The number 9 becomes the next digit in our result. 
Result so far: 78854.549
Subtract 4572 from 4680 to get 108.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1080, and continue the process.

Advancing to step 12:
508 goes into 1080 2 times with a remainder of 64.
Put 2 as the next digit of the answer. 
Result so far: 78854.5492
If we subtract 1016 from 1080, we get 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Step 13:
The number 508 fits into 640 1 times, leaving a remainder of 132.
The next digit of our result is 1. 
Result so far: 78854.54921
Deduct 508 from 640 and we're left with 132.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1320, and continue the process.

Moving on to step 14:
508 can be fit into 1320 2 times, resulting in a remainder of 304.
Record the quotient 2 as the next digit in the result. 
Result so far: 78854.549212
Deduct 1016 from 1320 and we're left with 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Advancing to step 15:
3040 divided by 508 is 5 with a remainder of 500.
Put 5 as the next digit of the answer. 
Result so far: 78854.5492125
Subtract 2540 from 3040 to get 500.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5000, and continue the process.

Step 16:
508 goes into 5000 9 times with a remainder of 428.
The number 9 becomes the next digit in our result. 
Result so far: 78854.54921259
If we subtract 4572 from 5000, we get 428.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4280, and continue the process.

The final result is 78854.54921259 with a remainder of 4.28e-07.