We look at the division of 540587 by 78 
Our goal is to divide 540587 by 78.

Moving on to step 1:
The number 78 fits into 5 0 times, leaving a remainder of 5.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
Subtract 0 from 5 to get 5.
Include the next digit (4) from the dividend after 5, then repeat: 54 / 78

Advancing to step 2:
54 divided by 78 is 0 with a remainder of 54.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 54 leaves us with 54.
Include the next digit (0) from the dividend after 54, then repeat: 540 / 78

On to step 3:
When dividing 540 by 78, we get 6 with a remainder of 72.
Use 6 as the next digit of our solution. 
Result so far: 6.0
If we take 468 away from 540, we end up with 72.
Include the next digit (5) from the dividend after 72, then repeat: 725 / 78

Let's proceed to step 4:
725 divided by 78 is 9 with a remainder of 23.
Use 9 as the next digit of our solution. 
Result so far: 69.0
Subtract 702 from 725 to get 23.
Bring next digit (8) of the dividend behind the 23 and repeat the process: 238 / 78

On to step 5:
78 goes into 238 3 times with a remainder of 4.
Write down 3 as next digit of the result. 
Result so far: 693.0
Subtract 234 from 238 to get 4.
Fetch the next digit (7) from the dividend, attach it to 4 and continue: 47 / 78

On to step 6:
78 goes into 47 0 times with a remainder of 47.
The next digit of our result is 0. 
Result so far: 6930.0
Subtract 0 from 47 to get 47.
Since there are no more digits in the dividend, we add a zero to the remainder making it 470, and continue the process.

Let's proceed to step 7:
78 can be fit into 470 6 times, resulting in a remainder of 2.
Write down 6 as next digit of the result. 
Result so far: 6930.6
Subtracting 468 from 470 leaves us with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Step 8:
20 divided by 78 is 0 with a remainder of 20.
The next digit of our result is 0. 
Result so far: 6930.6
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Going ahead to step 9:
200 divided by 78 is 2 with a remainder of 44.
Record the quotient 2 as the next digit in the result. 
Result so far: 6930.602
Subtract 156 from 200 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.

Advancing to step 10:
When dividing 440 by 78, we get 5 with a remainder of 50.
The number 5 becomes the next digit in our result. 
Result so far: 6930.6025
Subtracting 390 from 440 leaves us with 50.
Since there are no more digits in the dividend, we add a zero to the remainder making it 500, and continue the process.

Step 11:
The number 78 fits into 500 6 times, leaving a remainder of 32.
Use 6 as the next digit of our solution. 
Result so far: 6930.60256
Deduct 468 from 500 and we're left with 32.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

On to step 12:
The number 78 fits into 320 4 times, leaving a remainder of 8.
Use 4 as the next digit of our solution. 
Result so far: 6930.602564
The remainder is 8 after subtracting 312 from 320.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Let's proceed to step 13:
78 can be fit into 80 1 times, resulting in a remainder of 2.
Record the quotient 1 as the next digit in the result. 
Result so far: 6930.6025641
Deduct 78 from 80 and we're left with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

Let's proceed to step 14:
78 goes into 20 0 times with a remainder of 20.
Record the quotient 0 as the next digit in the result. 
Result so far: 6930.6025641
If we subtract 0 from 20, we get 20.
Since there are no more digits in the dividend, we add a zero to the remainder making it 200, and continue the process.

Our division results in 6930.6025641 with a remaining 2e-08.