40140866 ÷ 340 
We want to divide 40140866 by 340.

Moving on to step 1:
340 goes into 4 0 times with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 4 after subtracting 0 from 4.
Grab the next digit (0) from the dividend, add it to 4, then carry on: 40 / 340

Let's proceed to step 2:
340 can be fit into 40 0 times, resulting in a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtracting 0 from 40 leaves us with 40.
Append the next digit (1) from the dividend to 40 and continue with: 401 / 340

Going ahead to step 3:
401 divided by 340 is 1 with a remainder of 61.
Write down 1 as next digit of the result. 
Result so far: 1.0
If we subtract 340 from 401, we get 61.
Bring next digit (4) of the dividend behind the 61 and repeat the process: 614 / 340

Moving on to step 4:
340 can be fit into 614 1 times, resulting in a remainder of 274.
Use 1 as the next digit of our solution. 
Result so far: 11.0
Deduct 340 from 614 and we're left with 274.
Fetch the next digit (0) from the dividend, attach it to 274 and continue: 2740 / 340

On to step 5:
If we divide 2740 by 340, we get 8 and a remainder of 20.
Use 8 as the next digit of our solution. 
Result so far: 118.0
The remainder is 20 after subtracting 2720 from 2740.
Append the next digit (8) from the dividend to 20 and continue with: 208 / 340

Moving on to step 6:
When dividing 208 by 340, we get 0 with a remainder of 208.
Put 0 as the next digit of the answer. 
Result so far: 1180.0
If we take 0 away from 208, we end up with 208.
Append the next digit (6) from the dividend to 208 and continue with: 2086 / 340

Going ahead to step 7:
When dividing 2086 by 340, we get 6 with a remainder of 46.
Put 6 as the next digit of the answer. 
Result so far: 11806.0
The remainder is 46 after subtracting 2040 from 2086.
Grab the next digit (6) from the dividend, add it to 46, then carry on: 466 / 340

Let's proceed to step 8:
466 divided by 340 is 1 with a remainder of 126.
Write down 1 as next digit of the result. 
Result so far: 118061.0
If we take 340 away from 466, we end up 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.

Going ahead to step 9:
When dividing 1260 by 340, we get 3 with a remainder of 240.
Write down 3 as next digit of the result. 
Result so far: 118061.3
Subtract 1020 from 1260 to get 240.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

On to step 10:
When dividing 2400 by 340, we get 7 with a remainder of 20.
The next digit of our result is 7. 
Result so far: 118061.37
If we take 2380 away from 2400, we end up with 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

On to step 11:
340 goes into 200 0 times with a remainder of 200.
The number 0 becomes the next digit in our result. 
Result so far: 118061.37
If we take 0 away from 200, we end up with 200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2000, and continue the process.

Let's proceed to step 12:
2000 divided by 340 is 5 with a remainder of 300.
Use 5 as the next digit of our solution. 
Result so far: 118061.3705
Deduct 1700 from 2000 and we're left with 300.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3000, and continue the process.

Advancing to step 13:
3000 divided by 340 is 8 with a remainder of 280.
Put 8 as the next digit of the answer. 
Result so far: 118061.37058
If we take 2720 away from 3000, we end up with 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Let's proceed to step 14:
2800 divided by 340 is 8 with a remainder of 80.
Write down 8 as next digit of the result. 
Result so far: 118061.370588
Subtracting 2720 from 2800 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.

In conclusion, the division gives 118061.370588 with a balance of 8e-06.