We're dividing 540385 by 79 
Our goal is to divide 540385 by 79.

On to step 1:
5 divided by 79 is 0 with a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 79

Let's proceed to step 2:
When dividing 54 by 79, we get 0 with a remainder of 54.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
The remainder is 54 after subtracting 0 from 54.
Bring next digit (0) of the dividend behind the 54 and repeat the process: 540 / 79

Advancing to step 3:
79 goes into 540 6 times with a remainder of 66.
Use 6 as the next digit of our solution. 
Result so far: 6.0
Deduct 474 from 540 and we're left with 66.
Bring next digit (3) of the dividend behind the 66 and repeat the process: 663 / 79

Going ahead to step 4:
79 can be fit into 663 8 times, resulting in a remainder of 31.
The number 8 becomes the next digit in our result. 
Result so far: 68.0
Subtracting 632 from 663 leaves us with 31.
Grab the next digit (8) from the dividend, add it to 31, then carry on: 318 / 79

On to step 5:
If we divide 318 by 79, we get 4 and a remainder of 2.
The number 4 becomes the next digit in our result. 
Result so far: 684.0
Subtracting 316 from 318 leaves us with 2.
Grab the next digit (5) from the dividend, add it to 2, then carry on: 25 / 79

Advancing to step 6:
If we divide 25 by 79, we get 0 and a remainder of 25.
Use 0 as the next digit of our solution. 
Result so far: 6840.0
The remainder is 25 after subtracting 0 from 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

On to step 7:
The number 79 fits into 250 3 times, leaving a remainder of 13.
The number 3 becomes the next digit in our result. 
Result so far: 6840.3
Subtract 237 from 250 to get 13.
Since there are no more digits in the dividend, we add a zero to the remainder making it 130, and continue the process.

Moving on to step 8:
79 goes into 130 1 times with a remainder of 51.
The next digit of our result is 1. 
Result so far: 6840.31
Deduct 79 from 130 and we're left with 51.
Since there are no more digits in the dividend, we add a zero to the remainder making it 510, and continue the process.

Let's proceed to step 9:
When dividing 510 by 79, we get 6 with a remainder of 36.
Record the quotient 6 as the next digit in the result. 
Result so far: 6840.316
Subtract 474 from 510 to get 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

Let's proceed to step 10:
The number 79 fits into 360 4 times, leaving a remainder of 44.
The next digit of our result is 4. 
Result so far: 6840.3164
Subtract 316 from 360 to get 44.
Since there are no more digits in the dividend, we add a zero to the remainder making it 440, and continue the process.

Step 11:
When dividing 440 by 79, we get 5 with a remainder of 45.
The number 5 becomes the next digit in our result. 
Result so far: 6840.31645
Deduct 395 from 440 and we're left with 45.
Since there are no more digits in the dividend, we add a zero to the remainder making it 450, and continue the process.

Advancing to step 12:
79 can be fit into 450 5 times, resulting in a remainder of 55.
The next digit of our result is 5. 
Result so far: 6840.316455
The remainder is 55 after subtracting 395 from 450.
Since there are no more digits in the dividend, we add a zero to the remainder making it 550, and continue the process.

After the division, we end up with 6840.316455 and a remainder of 5.5e-06.