We're dividing 4957798 by 540 
We want to divide 4957798 by 540.

Let's proceed to step 1:
When dividing 4 by 540, we get 0 with a remainder of 4.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtracting 0 from 4 leaves us with 4.
Take the next digit (9) from the dividend and append it to 4, then repeat: 49 / 540

Advancing to step 2:
The number 540 fits into 49 0 times, leaving a remainder of 49.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtract 0 from 49 to get 49.
Bring next digit (5) of the dividend behind the 49 and repeat the process: 495 / 540

Let's proceed to step 3:
The number 540 fits into 495 0 times, leaving a remainder of 495.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 495, we get 495.
Append the next digit (7) from the dividend to 495 and continue with: 4957 / 540

Going ahead to step 4:
540 can be fit into 4957 9 times, resulting in a remainder of 97.
Record the quotient 9 as the next digit in the result. 
Result so far: 9.0
The remainder is 97 after subtracting 4860 from 4957.
Bring next digit (7) of the dividend behind the 97 and repeat the process: 977 / 540

Let's proceed to step 5:
977 divided by 540 is 1 with a remainder of 437.
Put 1 as the next digit of the answer. 
Result so far: 91.0
Subtract 540 from 977 to get 437.
Grab the next digit (9) from the dividend, add it to 437, then carry on: 4379 / 540

Step 6:
540 goes into 4379 8 times with a remainder of 59.
The number 8 becomes the next digit in our result. 
Result so far: 918.0
Deduct 4320 from 4379 and we're left with 59.
Fetch the next digit (8) from the dividend, attach it to 59 and continue: 598 / 540

On to step 7:
When dividing 598 by 540, we get 1 with a remainder of 58.
Record the quotient 1 as the next digit in the result. 
Result so far: 9181.0
Subtracting 540 from 598 leaves us with 58.
Since there are no more digits in the dividend, we add a zero to the remainder making it 580, and continue the process.

Advancing to step 8:
540 goes into 580 1 times with a remainder of 40.
Record the quotient 1 as the next digit in the result. 
Result so far: 9181.1
Deduct 540 from 580 and we're left with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Moving on to step 9:
540 goes into 400 0 times with a remainder of 400.
Put 0 as the next digit of the answer. 
Result so far: 9181.1
The remainder is 400 after subtracting 0 from 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

Going ahead to step 10:
540 goes into 4000 7 times with a remainder of 220.
Put 7 as the next digit of the answer. 
Result so far: 9181.107
Deduct 3780 from 4000 and we're left with 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2200, and continue the process.

Let's proceed to step 11:
540 goes into 2200 4 times with a remainder of 40.
Use 4 as the next digit of our solution. 
Result so far: 9181.1074
If we take 2160 away from 2200, we end up with 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 12:
If we divide 400 by 540, we get 0 and a remainder of 400.
Write down 0 as next digit of the result. 
Result so far: 9181.1074
Subtract 0 from 400 to get 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

On to step 13:
4000 divided by 540 is 7 with a remainder of 220.
Put 7 as the next digit of the answer. 
Result so far: 9181.107407
The remainder is 220 after subtracting 3780 from 4000.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2200, and continue the process.

Let's proceed to step 14:
2200 divided by 540 is 4 with a remainder of 40.
The next digit of our result is 4. 
Result so far: 9181.1074074
If we subtract 2160 from 2200, we get 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 400, and continue the process.

Step 15:
When dividing 400 by 540, we get 0 with a remainder of 400.
The next digit of our result is 0. 
Result so far: 9181.1074074
Subtracting 0 from 400 leaves us with 400.
Since there are no more digits in the dividend, we add a zero to the remainder making it 4000, and continue the process.

The quotient of the division is 9181.1074074, and the remainder is 4e-07.