Let's divide 40518 by 47
We're looking to find how many times 47 goes into 40518.

On to step 1:
When dividing 4 by 47, we get 0 with a remainder of 4.
Record the quotient 0 as the next digit in the 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 / 47

Step 2:
When dividing 40 by 47, we get 0 with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Append the next digit (5) from the dividend to 40 and continue with: 405 / 47

On to step 3:
405 divided by 47 is 8 with a remainder of 29.
Use 8 as the next digit of our solution. 
Result so far: 8.0
Subtracting 376 from 405 leaves us with 29.
Bring next digit (1) of the dividend behind the 29 and repeat the process: 291 / 47

Moving on to step 4:
If we divide 291 by 47, we get 6 and a remainder of 9.
Record the quotient 6 as the next digit in the result. 
Result so far: 86.0
Deduct 282 from 291 and we're left with 9.
Grab the next digit (8) from the dividend, add it to 9, then carry on: 98 / 47

Going ahead to step 5:
When dividing 98 by 47, we get 2 with a remainder of 4.
The next digit of our result is 2. 
Result so far: 862.0
Subtract 94 from 98 to get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 6:
When dividing 40 by 47, we get 0 with a remainder of 40.
Write down 0 as next digit of the result. 
Result so far: 862.0
The remainder is 40 after subtracting 0 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Advancing to step 7:
If we divide 400 by 47, we get 8 and a remainder of 24.
Write down 8 as next digit of the result. 
Result so far: 862.08
If we subtract 376 from 400, we get 24.
Since there are no more digits in the dividend, we add a zero to the remainder making it 240, and continue the process.

Advancing to step 8:
47 goes into 240 5 times with a remainder of 5.
Record the quotient 5 as the next digit in the result. 
Result so far: 862.085
Deduct 235 from 240 and we're left with 5.
Since there are no more digits in the dividend, we add a zero to the remainder making it 50, and continue the process.

On to step 9:
50 divided by 47 is 1 with a remainder of 3.
Record the quotient 1 as the next digit in the result. 
Result so far: 862.0851
If we subtract 47 from 50, we get 3.
Since there are no more digits in the dividend, we add a zero to the remainder making it 30, and continue the process.

On to step 10:
47 can be fit into 30 0 times, resulting in a remainder of 30.
Use 0 as the next digit of our solution. 
Result so far: 862.0851
If we take 0 away from 30, we end up with 30.
Since there are no more digits in the dividend, we add a zero to the remainder making it 300, and continue the process.

Going ahead to step 11:
47 can be fit into 300 6 times, resulting in a remainder of 18.
The next digit of our result is 6. 
Result so far: 862.085106
If we take 282 away from 300, we end up with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Going ahead to step 12:
When dividing 180 by 47, we get 3 with a remainder of 39.
Write down 3 as next digit of the result. 
Result so far: 862.0851063
Subtract 141 from 180 to get 39.
Since there are no more digits in the dividend, we add a zero to the remainder making it 390, and continue the process.

On to step 13:
When dividing 390 by 47, we get 8 with a remainder of 14.
The next digit of our result is 8. 
Result so far: 862.08510638
Subtracting 376 from 390 leaves us with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Our division results in 862.08510638 with a remaining 1.4e-08.