540793 divided by 2 
We're looking to find how many times 2 goes into 540793.

Moving on to step 1:
2 can be fit into 5 2 times, resulting in a remainder of 1.
The number 2 becomes the next digit in our result. 
Result so far: 2.0
The remainder is 1 after subtracting 4 from 5.
Fetch the next digit (4) from the dividend, attach it to 1 and continue: 14 / 2

Advancing to step 2:
2 can be fit into 14 7 times, resulting in a remainder of 0.
Put 7 as the next digit of the answer. 
Result so far: 27.0
Deduct 14 from 14 and we're left with 0.
Append the next digit (0) from the dividend to 0 and continue with: 0 / 2

Moving on to step 3:
2 can be fit into 0 0 times, resulting in a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 270.0
If we take 0 away from 0, we end up with 0.
Include the next digit (7) from the dividend after 0, then repeat: 7 / 2

Step 4:
If we divide 7 by 2, we get 3 and a remainder of 1.
Write down 3 as next digit of the result. 
Result so far: 2703.0
Subtracting 6 from 7 leaves us with 1.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 2

Step 5:
When dividing 19 by 2, we get 9 with a remainder of 1.
Record the quotient 9 as the next digit in the result. 
Result so far: 27039.0
If we subtract 18 from 19, we get 1.
Grab the next digit (3) from the dividend, add it to 1, then carry on: 13 / 2

Going ahead to step 6:
2 goes into 13 6 times with a remainder of 1.
The next digit of our result is 6. 
Result so far: 270396.0
Deduct 12 from 13 and we're left with 1.
Since there are no more digits in the dividend, we add a zero to the remainder making it 10, and continue the process.

Going ahead to step 7:
2 goes into 10 5 times with a remainder of 0.
The number 5 becomes the next digit in our result. 
Result so far: 270396.5
If we take 10 away from 10, we end up with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
0 divided by 2 is 0 with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 270396.5
Deduct 0 from 0 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Moving on to step 9:
If we divide 0 by 2, we get 0 and a remainder of 0.
Write down 0 as next digit of the result. 
Result so far: 270396.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final outcome is 270396.5, with a leftover of 0.0.