We're dividing 540642 by 91 
Let's see how many times 91 fits into 540642.

Let's proceed to step 1:
91 goes into 5 0 times with a remainder of 5.
Use 0 as the next digit of our solution. 
Result so far: 0.0
The remainder is 5 after subtracting 0 from 5.
Fetch the next digit (4) from the dividend, attach it to 5 and continue: 54 / 91

Going ahead to step 2:
91 goes into 54 0 times with a remainder of 54.
Put 0 as the next digit of the answer. 
Result so far: 0.0
Subtract 0 from 54 to get 54.
Include the next digit (0) from the dividend after 54, then repeat: 540 / 91

Advancing to step 3:
540 divided by 91 is 5 with a remainder of 85.
Use 5 as the next digit of our solution. 
Result so far: 5.0
The remainder is 85 after subtracting 455 from 540.
Append the next digit (6) from the dividend to 85 and continue with: 856 / 91

Let's proceed to step 4:
When dividing 856 by 91, we get 9 with a remainder of 37.
The next digit of our result is 9. 
Result so far: 59.0
Subtract 819 from 856 to get 37.
Take the next digit (4) from the dividend and append it to 37, then repeat: 374 / 91

Advancing to step 5:
91 can be fit into 374 4 times, resulting in a remainder of 10.
Use 4 as the next digit of our solution. 
Result so far: 594.0
Subtract 364 from 374 to get 10.
Append the next digit (2) from the dividend to 10 and continue with: 102 / 91

On to step 6:
If we divide 102 by 91, we get 1 and a remainder of 11.
Put 1 as the next digit of the answer. 
Result so far: 5941.0
The remainder is 11 after subtracting 91 from 102.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

On to step 7:
If we divide 110 by 91, we get 1 and a remainder of 19.
Record the quotient 1 as the next digit in the result. 
Result so far: 5941.1
Subtract 91 from 110 to get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Going ahead to step 8:
190 divided by 91 is 2 with a remainder of 8.
Record the quotient 2 as the next digit in the result. 
Result so far: 5941.12
The remainder is 8 after subtracting 182 from 190.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 9:
If we divide 80 by 91, we get 0 and a remainder of 80.
Put 0 as the next digit of the answer. 
Result so far: 5941.12
If we take 0 away from 80, we end up with 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 800, and continue the process.

Going ahead to step 10:
When dividing 800 by 91, we get 8 with a remainder of 72.
Put 8 as the next digit of the answer. 
Result so far: 5941.1208
The remainder is 72 after subtracting 728 from 800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 720, and continue the process.

Going ahead to step 11:
When dividing 720 by 91, we get 7 with a remainder of 83.
Write down 7 as next digit of the result. 
Result so far: 5941.12087
Deduct 637 from 720 and we're left with 83.
Since there are no more digits in the dividend, we add a zero to the remainder making it 830, and continue the process.

Going ahead to step 12:
When dividing 830 by 91, we get 9 with a remainder of 11.
Use 9 as the next digit of our solution. 
Result so far: 5941.120879
The remainder is 11 after subtracting 819 from 830.
Since there are no more digits in the dividend, we add a zero to the remainder making it 110, and continue the process.

Going ahead to step 13:
110 divided by 91 is 1 with a remainder of 19.
The number 1 becomes the next digit in our result. 
Result so far: 5941.1208791
If we subtract 91 from 110, we get 19.
Since there are no more digits in the dividend, we add a zero to the remainder making it 190, and continue the process.

Advancing to step 14:
When dividing 190 by 91, we get 2 with a remainder of 8.
Use 2 as the next digit of our solution. 
Result so far: 5941.12087912
If we subtract 182 from 190, we get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

After the division, we end up with 5941.12087912 and a remainder of 8e-09.