We look at the division of 40401187 by 346 
Let's see how many times 346 fits into 40401187.

Let's proceed to step 1:
346 can be fit into 4 0 times, resulting in a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
If we subtract 0 from 4, we get 4.
Bring next digit (0) of the dividend behind the 4 and repeat the process: 40 / 346

Moving on to step 2:
346 goes into 40 0 times with a remainder of 40.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Grab the next digit (4) from the dividend, add it to 40, then carry on: 404 / 346

Going ahead to step 3:
404 divided by 346 is 1 with a remainder of 58.
Use 1 as the next digit of our solution. 
Result so far: 1.0
If we subtract 346 from 404, we get 58.
Append the next digit (0) from the dividend to 58 and continue with: 580 / 346

Step 4:
580 divided by 346 is 1 with a remainder of 234.
The number 1 becomes the next digit in our result. 
Result so far: 11.0
Deduct 346 from 580 and we're left with 234.
Take the next digit (1) from the dividend and append it to 234, then repeat: 2341 / 346

Going ahead to step 5:
When dividing 2341 by 346, we get 6 with a remainder of 265.
Record the quotient 6 as the next digit in the result. 
Result so far: 116.0
If we subtract 2076 from 2341, we get 265.
Grab the next digit (1) from the dividend, add it to 265, then carry on: 2651 / 346

Step 6:
If we divide 2651 by 346, we get 7 and a remainder of 229.
Record the quotient 7 as the next digit in the result. 
Result so far: 1167.0
Deduct 2422 from 2651 and we're left with 229.
Bring next digit (8) of the dividend behind the 229 and repeat the process: 2298 / 346

Going ahead to step 7:
The number 346 fits into 2298 6 times, leaving a remainder of 222.
Put 6 as the next digit of the answer. 
Result so far: 11676.0
Subtract 2076 from 2298 to get 222.
Include the next digit (7) from the dividend after 222, then repeat: 2227 / 346

Going ahead to step 8:
2227 divided by 346 is 6 with a remainder of 151.
The number 6 becomes the next digit in our result. 
Result so far: 116766.0
Subtract 2076 from 2227 to get 151.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1510, and continue the process.

Moving on to step 9:
346 can be fit into 1510 4 times, resulting in a remainder of 126.
Use 4 as the next digit of our solution. 
Result so far: 116766.4
Deduct 1384 from 1510 and we're left with 126.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1260, and continue the process.

Moving on to step 10:
If we divide 1260 by 346, we get 3 and a remainder of 222.
The number 3 becomes the next digit in our result. 
Result so far: 116766.43
Subtracting 1038 from 1260 leaves us with 222.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2220, and continue the process.

Advancing to step 11:
2220 divided by 346 is 6 with a remainder of 144.
Put 6 as the next digit of the answer. 
Result so far: 116766.436
Subtracting 2076 from 2220 leaves us with 144.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1440, and continue the process.

On to step 12:
The number 346 fits into 1440 4 times, leaving a remainder of 56.
Put 4 as the next digit of the answer. 
Result so far: 116766.4364
Subtracting 1384 from 1440 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.

On to step 13:
When dividing 560 by 346, we get 1 with a remainder of 214.
Write down 1 as next digit of the result. 
Result so far: 116766.43641
Subtract 346 from 560 to get 214.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2140, and continue the process.

Going ahead to step 14:
If we divide 2140 by 346, we get 6 and a remainder of 64.
The next digit of our result is 6. 
Result so far: 116766.436416
Subtracting 2076 from 2140 leaves us with 64.
Since there are no more digits in the dividend, we add a zero to the remainder making it 640, and continue the process.

Going ahead to step 15:
346 goes into 640 1 times with a remainder of 294.
The number 1 becomes the next digit in our result. 
Result so far: 116766.4364161
If we take 346 away from 640, we end up with 294.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2940, and continue the process.

Moving on to step 16:
346 goes into 2940 8 times with a remainder of 172.
The number 8 becomes the next digit in our result. 
Result so far: 116766.43641618
Deduct 2768 from 2940 and we're left with 172.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1720, and continue the process.

After the division, we end up with 116766.43641618 and a remainder of 1.72e-07.