We're dividing 5640352 by 340 
Let's see how many times 340 fits into 5640352.

Let's proceed to step 1:
If we divide 5 by 340, we get 0 and a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (6) from the dividend, attach it to 5 and continue: 56 / 340

Going ahead to step 2:
56 divided by 340 is 0 with a remainder of 56.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Deduct 0 from 56 and we're left with 56.
Append the next digit (4) from the dividend to 56 and continue with: 564 / 340

Step 3:
When dividing 564 by 340, we get 1 with a remainder of 224.
The number 1 becomes the next digit in our result. 
Result so far: 1.0
Subtracting 340 from 564 leaves us with 224.
Append the next digit (0) from the dividend to 224 and continue with: 2240 / 340

Moving on to step 4:
The number 340 fits into 2240 6 times, leaving a remainder of 200.
Use 6 as the next digit of our solution. 
Result so far: 16.0
Subtract 2040 from 2240 to get 200.
Bring next digit (3) of the dividend behind the 200 and repeat the process: 2003 / 340

Step 5:
340 can be fit into 2003 5 times, resulting in a remainder of 303.
Use 5 as the next digit of our solution. 
Result so far: 165.0
Deduct 1700 from 2003 and we're left with 303.
Bring next digit (5) of the dividend behind the 303 and repeat the process: 3035 / 340

Step 6:
3035 divided by 340 is 8 with a remainder of 315.
Use 8 as the next digit of our solution. 
Result so far: 1658.0
Subtract 2720 from 3035 to get 315.
Bring next digit (2) of the dividend behind the 315 and repeat the process: 3152 / 340

Moving on to step 7:
340 goes into 3152 9 times with a remainder of 92.
Record the quotient 9 as the next digit in the result. 
Result so far: 16589.0
Deduct 3060 from 3152 and we're left with 92.
Since there are no more digits in the dividend, we add a zero to the remainder making it 920, and continue the process.

Moving on to step 8:
When dividing 920 by 340, we get 2 with a remainder of 240.
The next digit of our result is 2. 
Result so far: 16589.2
Subtract 680 from 920 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 9:
The number 340 fits into 2400 7 times, leaving a remainder of 20.
Record the quotient 7 as the next digit in the result. 
Result so far: 16589.27
Subtracting 2380 from 2400 leaves us 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 10:
340 goes into 200 0 times with a remainder of 200.
Put 0 as the next digit of the answer. 
Result so far: 16589.27
Subtracting 0 from 200 leaves us 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.

Step 11:
When dividing 2000 by 340, we get 5 with a remainder of 300.
The number 5 becomes the next digit in our result. 
Result so far: 16589.2705
If we take 1700 away from 2000, we end up 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 12:
3000 divided by 340 is 8 with a remainder of 280.
Record the quotient 8 as the next digit in the result. 
Result so far: 16589.27058
If we subtract 2720 from 3000, we get 280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2800, and continue the process.

Going ahead to step 13:
If we divide 2800 by 340, we get 8 and a remainder of 80.
Write down 8 as next digit of the result. 
Result so far: 16589.270588
If we subtract 2720 from 2800, we get 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

The final outcome is 16589.270588, with a leftover of 8e-06.