We look at the division of 5840935 by 254 
We want to divide 5840935 by 254.

On to step 1:
254 can be fit into 5 0 times, resulting in a remainder of 5.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 5 leaves us with 5.
Include the next digit (8) from the dividend after 5, then repeat: 58 / 254

On to step 2:
When dividing 58 by 254, we get 0 with a remainder of 58.
The next digit of our result is 0. 
Result so far: 0.0
Subtracting 0 from 58 leaves us with 58.
Append the next digit (4) from the dividend to 58 and continue with: 584 / 254

Moving on to step 3:
When dividing 584 by 254, we get 2 with a remainder of 76.
Use 2 as the next digit of our solution. 
Result so far: 2.0
The remainder is 76 after subtracting 508 from 584.
Include the next digit (0) from the dividend after 76, then repeat: 760 / 254

On to step 4:
254 goes into 760 2 times with a remainder of 252.
The next digit of our result is 2. 
Result so far: 22.0
The remainder is 252 after subtracting 508 from 760.
Append the next digit (9) from the dividend to 252 and continue with: 2529 / 254

Moving on to step 5:
254 goes into 2529 9 times with a remainder of 243.
Use 9 as the next digit of our solution. 
Result so far: 229.0
Subtracting 2286 from 2529 leaves us with 243.
Bring next digit (3) of the dividend behind the 243 and repeat the process: 2433 / 254

Going ahead to step 6:
The number 254 fits into 2433 9 times, leaving a remainder of 147.
Use 9 as the next digit of our solution. 
Result so far: 2299.0
If we subtract 2286 from 2433, we get 147.
Append the next digit (5) from the dividend to 147 and continue with: 1475 / 254

On to step 7:
1475 divided by 254 is 5 with a remainder of 205.
The number 5 becomes the next digit in our result. 
Result so far: 22995.0
The remainder is 205 after subtracting 1270 from 1475.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2050, and continue the process.

Moving on to step 8:
2050 divided by 254 is 8 with a remainder of 18.
The next digit of our result is 8. 
Result so far: 22995.8
If we take 2032 away from 2050, we end up 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.

Going ahead to step 9:
If we divide 180 by 254, we get 0 and a remainder of 180.
Use 0 as the next digit of our solution. 
Result so far: 22995.8
Subtracting 0 from 180 leaves us with 180.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1800, and continue the process.

Advancing to step 10:
254 can be fit into 1800 7 times, resulting in a remainder of 22.
Record the quotient 7 as the next digit in the result. 
Result so far: 22995.807
The remainder is 22 after subtracting 1778 from 1800.
Since there are no more digits in the dividend, we add a zero to the remainder making it 220, and continue the process.

Moving on to step 11:
If we divide 220 by 254, we get 0 and a remainder of 220.
Put 0 as the next digit of the answer. 
Result so far: 22995.807
Subtract 0 from 220 to get 220.
Since there are no more digits in the dividend, we add a zero to the remainder making it 2200, and continue the process.

On to step 12:
The number 254 fits into 2200 8 times, leaving a remainder of 168.
Write down 8 as next digit of the result. 
Result so far: 22995.80708
If we take 2032 away from 2200, we end up with 168.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1680, and continue the process.

Advancing to step 13:
254 goes into 1680 6 times with a remainder of 156.
Use 6 as the next digit of our solution. 
Result so far: 22995.807086
The remainder is 156 after subtracting 1524 from 1680.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1560, and continue the process.

Moving on to step 14:
If we divide 1560 by 254, we get 6 and a remainder of 36.
Use 6 as the next digit of our solution. 
Result so far: 22995.8070866
Subtracting 1524 from 1560 leaves us with 36.
Since there are no more digits in the dividend, we add a zero to the remainder making it 360, and continue the process.

After the division, we end up with 22995.8070866 and a remainder of 3.6e-07.