We're dividing 540767 by 59 
We want to divide 540767 by 59.

On to step 1:
If we divide 5 by 59, we get 0 and 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.
Grab the next digit (4) from the dividend, add it to 5, then carry on: 54 / 59

Moving on to step 2:
If we divide 54 by 59, we get 0 and a remainder of 54.
Put 0 as the next digit of the answer. 
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 / 59

Advancing to step 3:
If we divide 540 by 59, we get 9 and a remainder of 9.
The next digit of our result is 9. 
Result so far: 9.0
If we take 531 away from 540, we end up with 9.
Grab the next digit (7) from the dividend, add it to 9, then carry on: 97 / 59

On to step 4:
When dividing 97 by 59, we get 1 with a remainder of 38.
The number 1 becomes the next digit in our result. 
Result so far: 91.0
Subtract 59 from 97 to get 38.
Include the next digit (6) from the dividend after 38, then repeat: 386 / 59

Step 5:
When dividing 386 by 59, we get 6 with a remainder of 32.
Write down 6 as next digit of the result. 
Result so far: 916.0
If we take 354 away from 386, we end up with 32.
Bring next digit (7) of the dividend behind the 32 and repeat the process: 327 / 59

Advancing to step 6:
The number 59 fits into 327 5 times, leaving a remainder of 32.
The next digit of our result is 5. 
Result so far: 9165.0
The remainder is 32 after subtracting 295 from 327.
Since there are no more digits in the dividend, we add a zero to the remainder making it 320, and continue the process.

Moving on to step 7:
If we divide 320 by 59, we get 5 and a remainder of 25.
Write down 5 as next digit of the result. 
Result so far: 9165.5
Subtracting 295 from 320 leaves us with 25.
Since there are no more digits in the dividend, we add a zero to the remainder making it 250, and continue the process.

Advancing to step 8:
When dividing 250 by 59, we get 4 with a remainder of 14.
Write down 4 as next digit of the result. 
Result so far: 9165.54
Deduct 236 from 250 and we're left with 14.
Since there are no more digits in the dividend, we add a zero to the remainder making it 140, and continue the process.

Going ahead to step 9:
If we divide 140 by 59, we get 2 and a remainder of 22.
The next digit of our result is 2. 
Result so far: 9165.542
The remainder is 22 after subtracting 118 from 140.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

On to step 10:
59 can be fit into 220 3 times, resulting in a remainder of 43.
Write down 3 as next digit of the result. 
Result so far: 9165.5423
Subtracting 177 from 220 leaves us with 43.
Since there are no more digits in the dividend, we add a zero to the remainder making it 430, and continue the process.

Step 11:
The number 59 fits into 430 7 times, leaving a remainder of 17.
Put 7 as the next digit of the answer. 
Result so far: 9165.54237
If we take 413 away from 430, we end up with 17.
Since there are no more digits in the dividend, we add a zero to the remainder making it 170, and continue the process.

On to step 12:
59 can be fit into 170 2 times, resulting in a remainder of 52.
Write down 2 as next digit of the result. 
Result so far: 9165.542372
Subtract 118 from 170 to get 52.
Since there are no more digits in the dividend, we add a zero to the remainder making it 520, and continue the process.

Let's proceed to step 13:
If we divide 520 by 59, we get 8 and a remainder of 48.
Use 8 as the next digit of our solution. 
Result so far: 9165.5423728
If we take 472 away from 520, we end up with 48.
Since there are no more digits in the dividend, we add a zero to the remainder making it 480, and continue the process.

On to step 14:
When dividing 480 by 59, we get 8 with a remainder of 8.
Use 8 as the next digit of our solution. 
Result so far: 9165.54237288
Deduct 472 from 480 and we're left with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

In conclusion, the division gives 9165.54237288 with a balance of 8e-09.