We're dividing 40235810 by 340 
We're looking to find how many times 340 goes into 40235810.

On to step 1:
340 goes into 4 0 times with 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.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 340

Step 2:
When dividing 40 by 340, we get 0 with a remainder of 40.
Use 0 as the next digit of our solution. 
Result so far: 0.0
Subtract 0 from 40 to get 40.
Append the next digit (2) from the dividend to 40 and continue with: 402 / 340

Let's proceed to step 3:
402 divided by 340 is 1 with a remainder of 62.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
If we take 340 away from 402, we end up with 62.
Bring next digit (3) of the dividend behind the 62 and repeat the process: 623 / 340

Advancing to step 4:
623 divided by 340 is 1 with a remainder of 283.
Write down 1 as next digit of the result. 
Result so far: 11.0
If we take 340 away from 623, we end up with 283.
Include the next digit (5) from the dividend after 283, then repeat: 2835 / 340

Moving on to step 5:
When dividing 2835 by 340, we get 8 with a remainder of 115.
The number 8 becomes the next digit in our result. 
Result so far: 118.0
The remainder is 115 after subtracting 2720 from 2835.
Append the next digit (8) from the dividend to 115 and continue with: 1158 / 340

Let's proceed to step 6:
The number 340 fits into 1158 3 times, leaving a remainder of 138.
Put 3 as the next digit of the answer. 
Result so far: 1183.0
Subtract 1020 from 1158 to get 138.
Take the next digit (1) from the dividend and append it to 138, then repeat: 1381 / 340

Going ahead to step 7:
The number 340 fits into 1381 4 times, leaving a remainder of 21.
Record the quotient 4 as the next digit in the result. 
Result so far: 11834.0
Subtract 1360 from 1381 to get 21.
Append the next digit (0) from the dividend to 21 and continue with: 210 / 340

Going ahead to step 8:
When dividing 210 by 340, we get 0 with a remainder of 210.
Record the quotient 0 as the next digit in the result. 
Result so far: 118340.0
Subtract 0 from 210 to get 210.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2100, and continue the process.

Advancing to step 9:
When dividing 2100 by 340, we get 6 with a remainder of 60.
The number 6 becomes the next digit in our result. 
Result so far: 118340.6
The remainder is 60 after subtracting 2040 from 2100.
Since there are no more digits in the dividend, we add a zero to the remainder making it 600, and continue the process.

Let's proceed to step 10:
600 divided by 340 is 1 with a remainder of 260.
Record the quotient 1 as the next digit in the result. 
Result so far: 118340.61
Subtract 340 from 600 to get 260.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2600, and continue the process.

Moving on to step 11:
When dividing 2600 by 340, we get 7 with a remainder of 220.
Write down 7 as next digit of the result. 
Result so far: 118340.617
The remainder is 220 after subtracting 2380 from 2600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2200, and continue the process.

Let's proceed to step 12:
2200 divided by 340 is 6 with a remainder of 160.
The number 6 becomes the next digit in our result. 
Result so far: 118340.6176
The remainder is 160 after subtracting 2040 from 2200.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1600, and continue the process.

Step 13:
1600 divided by 340 is 4 with a remainder of 240.
Put 4 as the next digit of the answer. 
Result so far: 118340.61764
The remainder is 240 after subtracting 1360 from 1600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2400, and continue the process.

Moving on to step 14:
340 goes into 2400 7 times with a remainder of 20.
Put 7 as the next digit of the answer. 
Result so far: 118340.617647
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.

Step 15:
200 divided by 340 is 0 with a remainder of 200.
Put 0 as the next digit of the answer. 
Result so far: 118340.617647
Deduct 0 from 200 and we're left 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.

Advancing to step 16:
340 goes into 2000 5 times with a remainder of 300.
Put 5 as the next digit of the answer. 
Result so far: 118340.61764705
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.

In conclusion, the division gives 118340.61764705 with a balance of 3e-07.