We look at the division of 540945 by 87 
Let's see how many times 87 fits into 540945.

Moving on to step 1:
87 can be fit into 5 0 times, resulting in a remainder of 5.
The next digit of our result is 0. 
Result so far: 0.0
Deduct 0 from 5 and we're left with 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 87

Moving on to step 2:
54 divided by 87 is 0 with a remainder of 54.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Deduct 0 from 54 and we're left with 54.
Append the next digit (0) from the dividend to 54 and continue with: 540 / 87

Let's proceed to step 3:
The number 87 fits into 540 6 times, leaving a remainder of 18.
The next digit of our result is 6. 
Result so far: 6.0
Subtracting 522 from 540 leaves us with 18.
Take the next digit (9) from the dividend and append it to 18, then repeat: 189 / 87

Let's proceed to step 4:
The number 87 fits into 189 2 times, leaving a remainder of 15.
Record the quotient 2 as the next digit in the result. 
Result so far: 62.0
If we subtract 174 from 189, we get 15.
Bring next digit (4) of the dividend behind the 15 and repeat the process: 154 / 87

Advancing to step 5:
87 can be fit into 154 1 times, resulting in a remainder of 67.
Put 1 as the next digit of the answer. 
Result so far: 621.0
The remainder is 67 after subtracting 87 from 154.
Fetch the next digit (5) from the dividend, attach it to 67 and continue: 675 / 87

Going ahead to step 6:
The number 87 fits into 675 7 times, leaving a remainder of 66.
The next digit of our result is 7. 
Result so far: 6217.0
If we take 609 away from 675, we end up with 66.
Since there are no more digits in the dividend, we add a zero to the remainder making it 660, and continue the process.

Advancing to step 7:
The number 87 fits into 660 7 times, leaving a remainder of 51.
Write down 7 as next digit of the result. 
Result so far: 6217.7
Deduct 609 from 660 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.

Going ahead to step 8:
510 divided by 87 is 5 with a remainder of 75.
The number 5 becomes the next digit in our result. 
Result so far: 6217.75
Subtract 435 from 510 to get 75.
Since there are no more digits in the dividend, we add a zero to the remainder making it 750, and continue the process.

Step 9:
When dividing 750 by 87, we get 8 with a remainder of 54.
The next digit of our result is 8. 
Result so far: 6217.758
If we subtract 696 from 750, we get 54.
Since there are no more digits in the dividend, we add a zero to the remainder making it 540, and continue the process.

Moving on to step 10:
87 can be fit into 540 6 times, resulting in a remainder of 18.
Record the quotient 6 as the next digit in the result. 
Result so far: 6217.7586
Deduct 522 from 540 and we're left with 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 180, and continue the process.

Let's proceed to step 11:
If we divide 180 by 87, we get 2 and a remainder of 6.
The number 2 becomes the next digit in our result. 
Result so far: 6217.75862
Subtract 174 from 180 to get 6.
Since there are no more digits in the dividend, we add a zero to the remainder making it 60, and continue the process.

Step 12:
The number 87 fits into 60 0 times, leaving a remainder of 60.
Use 0 as the next digit of our solution. 
Result so far: 6217.75862
If we take 0 away from 60, we end up with 60.
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 13:
If we divide 600 by 87, we get 6 and a remainder of 78.
Use 6 as the next digit of our solution. 
Result so far: 6217.7586206
The remainder is 78 after subtracting 522 from 600.
Since there are no more digits in the dividend, we add a zero to the remainder making it 780, and continue the process.

Step 14:
87 can be fit into 780 8 times, resulting in a remainder of 84.
The number 8 becomes the next digit in our result. 
Result so far: 6217.75862068
The remainder is 84 after subtracting 696 from 780.
Since there are no more digits in the dividend, we add a zero to the remainder making it 840, and continue the process.

In conclusion, the division gives 6217.75862068 with a balance of 8.4e-08.