We're dividing 5039740 by 904 
We're looking to find how many times 904 goes into 5039740.

Let's proceed to step 1:
If we divide 5 by 904, we get 0 and 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.
Take the next digit (0) from the dividend and append it to 5, then repeat: 50 / 904

Let's proceed to step 2:
904 goes into 50 0 times with a remainder of 50.
Write down 0 as next digit of the result. 
Result so far: 0.0
Subtracting 0 from 50 leaves us with 50.
Fetch the next digit (3) from the dividend, attach it to 50 and continue: 503 / 904

Advancing to step 3:
The number 904 fits into 503 0 times, leaving a remainder of 503.
The next digit of our result is 0. 
Result so far: 0.0
If we take 0 away from 503, we end up with 503.
Bring next digit (9) of the dividend behind the 503 and repeat the process: 5039 / 904

Advancing to step 4:
5039 divided by 904 is 5 with a remainder of 519.
Record the quotient 5 as the next digit in the result. 
Result so far: 5.0
Subtract 4520 from 5039 to get 519.
Take the next digit (7) from the dividend and append it to 519, then repeat: 5197 / 904

Advancing to step 5:
If we divide 5197 by 904, we get 5 and a remainder of 677.
Write down 5 as next digit of the result. 
Result so far: 55.0
The remainder is 677 after subtracting 4520 from 5197.
Bring next digit (4) of the dividend behind the 677 and repeat the process: 6774 / 904

Going ahead to step 6:
When dividing 6774 by 904, we get 7 with a remainder of 446.
Put 7 as the next digit of the answer. 
Result so far: 557.0
Subtracting 6328 from 6774 leaves us with 446.
Bring next digit (0) of the dividend behind the 446 and repeat the process: 4460 / 904

Step 7:
If we divide 4460 by 904, we get 4 and a remainder of 844.
The number 4 becomes the next digit in our result. 
Result so far: 5574.0
If we subtract 3616 from 4460, we get 844.
Since there are no more digits in the dividend, we add a zero to the remainder making it 8440, and continue the process.

Moving on to step 8:
8440 divided by 904 is 9 with a remainder of 304.
Write down 9 as next digit of the result. 
Result so far: 5574.9
If we subtract 8136 from 8440, we get 304.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3040, and continue the process.

Let's proceed to step 9:
If we divide 3040 by 904, we get 3 and a remainder of 328.
Record the quotient 3 as the next digit in the result. 
Result so far: 5574.93
If we take 2712 away from 3040, we end up with 328.
Since there are no more digits in the dividend, we add a zero to the remainder making it 3280, and continue the process.

On to step 10:
If we divide 3280 by 904, we get 3 and a remainder of 568.
The next digit of our result is 3. 
Result so far: 5574.933
The remainder is 568 after subtracting 2712 from 3280.
Since there are no more digits in the dividend, we add a zero to the remainder making it 5680, and continue the process.

The final outcome is 5574.933, with a leftover of 0.0568.