Let's divide 40517885 by 118
We want to figure out the number of times 40517885 can be divided by 118.

Step 1:
118 goes into 4 0 times with a remainder of 4.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we take 0 away from 4, we end up with 4.
Include the next digit (0) from the dividend after 4, then repeat: 40 / 118

Advancing to step 2:
118 can be fit into 40 0 times, resulting in a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Fetch the next digit (5) from the dividend, attach it to 40 and continue: 405 / 118

On to step 3:
405 divided by 118 is 3 with a remainder of 51.
Write down 3 as next digit of the result. 
Result so far: 3.0
Subtracting 354 from 405 leaves us with 51.
Include the next digit (1) from the dividend after 51, then repeat: 511 / 118

Advancing to step 4:
118 goes into 511 4 times with a remainder of 39.
Put 4 as the next digit of the answer. 
Result so far: 34.0
Deduct 472 from 511 and we're left with 39.
Bring next digit (7) of the dividend behind the 39 and repeat the process: 397 / 118

Let's proceed to step 5:
When dividing 397 by 118, we get 3 with a remainder of 43.
Write down 3 as next digit of the result. 
Result so far: 343.0
Subtract 354 from 397 to get 43.
Include the next digit (8) from the dividend after 43, then repeat: 438 / 118

Step 6:
438 divided by 118 is 3 with a remainder of 84.
Use 3 as the next digit of our solution. 
Result so far: 3433.0
If we take 354 away from 438, we end up with 84.
Append the next digit (8) from the dividend to 84 and continue with: 848 / 118

Let's proceed to step 7:
The number 118 fits into 848 7 times, leaving a remainder of 22.
The number 7 becomes the next digit in our result. 
Result so far: 34337.0
The remainder is 22 after subtracting 826 from 848.
Append the next digit (5) from the dividend to 22 and continue with: 225 / 118

Let's proceed to step 8:
If we divide 225 by 118, we get 1 and a remainder of 107.
Put 1 as the next digit of the answer. 
Result so far: 343371.0
If we subtract 118 from 225, we get 107.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1070, and continue the process.

On to step 9:
118 goes into 1070 9 times with a remainder of 8.
Use 9 as the next digit of our solution. 
Result so far: 343371.9
If we subtract 1062 from 1070, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

On to step 10:
118 goes into 80 0 times with a remainder of 80.
The number 0 becomes the next digit in our result. 
Result so far: 343371.9
Subtracting 0 from 80 leaves us with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Going ahead to step 11:
800 divided by 118 is 6 with a remainder of 92.
Write down 6 as next digit of the result. 
Result so far: 343371.906
If we take 708 away from 800, we end up with 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Moving on to step 12:
118 goes into 920 7 times with a remainder of 94.
Record the quotient 7 as the next digit in the result. 
Result so far: 343371.9067
If we take 826 away from 920, we end up with 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 13:
940 divided by 118 is 7 with a remainder of 114.
Use 7 as the next digit of our solution. 
Result so far: 343371.90677
If we take 826 away from 940, we end up with 114.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1140, and continue the process.

After the division, we end up with 343371.90677 and a remainder of 0.000114.