We look at the division of 40715476 by 338 
We're looking to find how many times 338 goes into 40715476.

Advancing to step 1:
If we divide 4 by 338, we get 0 and 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.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 338

Moving on to step 2:
When dividing 40 by 338, we get 0 with a remainder of 40.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Include the next digit (7) from the dividend after 40, then repeat: 407 / 338

Moving on to step 3:
407 divided by 338 is 1 with a remainder of 69.
Write down 1 as next digit of the result. 
Result so far: 1.0
Subtracting 338 from 407 leaves us with 69.
Grab the next digit (1) from the dividend, add it to 69, then carry on: 691 / 338

Moving on to step 4:
When dividing 691 by 338, we get 2 with a remainder of 15.
Put 2 as the next digit of the answer. 
Result so far: 12.0
Subtracting 676 from 691 leaves us with 15.
Grab the next digit (5) from the dividend, add it to 15, then carry on: 155 / 338

Moving on to step 5:
When dividing 155 by 338, we get 0 with a remainder of 155.
Write down 0 as next digit of the result. 
Result so far: 120.0
Subtracting 0 from 155 leaves us with 155.
Include the next digit (4) from the dividend after 155, then repeat: 1554 / 338

Let's proceed to step 6:
The number 338 fits into 1554 4 times, leaving a remainder of 202.
Put 4 as the next digit of the answer. 
Result so far: 1204.0
Subtracting 1352 from 1554 leaves us with 202.
Fetch the next digit (7) from the dividend, attach it to 202 and continue: 2027 / 338

Advancing to step 7:
When dividing 2027 by 338, we get 5 with a remainder of 337.
Write down 5 as next digit of the result. 
Result so far: 12045.0
If we subtract 1690 from 2027, we get 337.
Include the next digit (6) from the dividend after 337, then repeat: 3376 / 338

On to step 8:
When dividing 3376 by 338, we get 9 with a remainder of 334.
Put 9 as the next digit of the answer. 
Result so far: 120459.0
Subtract 3042 from 3376 to get 334.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3340, and continue the process.

Step 9:
The number 338 fits into 3340 9 times, leaving a remainder of 298.
The number 9 becomes the next digit in our result. 
Result so far: 120459.9
Subtract 3042 from 3340 to get 298.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2980, and continue the process.

Going ahead to step 10:
338 goes into 2980 8 times with a remainder of 276.
The number 8 becomes the next digit in our result. 
Result so far: 120459.98
If we subtract 2704 from 2980, we get 276.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2760, and continue the process.

Step 11:
If we divide 2760 by 338, we get 8 and a remainder of 56.
The number 8 becomes the next digit in our result. 
Result so far: 120459.988
Subtracting 2704 from 2760 leaves us with 56.
Since there are no more digits in the dividend, we add a zero to the remainder making it 560, and continue the process.

Our division results in 120459.988 with a remaining 0.0056.