We look at the division of 5198412 by 794 
We want to divide 5198412 by 794.

Step 1:
794 can be fit into 5 0 times, resulting in a remainder of 5.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
If we subtract 0 from 5, we get 5.
Fetch the next digit (1) from the dividend, attach it to 5 and continue: 51 / 794

Advancing to step 2:
The number 794 fits into 51 0 times, leaving a remainder of 51.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 51 leaves us with 51.
Take the next digit (9) from the dividend and append it to 51, then repeat: 519 / 794

Advancing to step 3:
When dividing 519 by 794, we get 0 with a remainder of 519.
The number 0 becomes the next digit in our result. 
Result so far: 0.0
If we subtract 0 from 519, we get 519.
Take the next digit (8) from the dividend and append it to 519, then repeat: 5198 / 794

On to step 4:
When dividing 5198 by 794, we get 6 with a remainder of 434.
The next digit of our result is 6. 
Result so far: 6.0
If we take 4764 away from 5198, we end up with 434.
Fetch the next digit (4) from the dividend, attach it to 434 and continue: 4344 / 794

Advancing to step 5:
When dividing 4344 by 794, we get 5 with a remainder of 374.
Put 5 as the next digit of the answer. 
Result so far: 65.0
Subtracting 3970 from 4344 leaves us with 374.
Fetch the next digit (1) from the dividend, attach it to 374 and continue: 3741 / 794

Going ahead to step 6:
794 can be fit into 3741 4 times, resulting in a remainder of 565.
Use 4 as the next digit of our solution. 
Result so far: 654.0
The remainder is 565 after subtracting 3176 from 3741.
Grab the next digit (2) from the dividend, add it to 565, then carry on: 5652 / 794

Step 7:
The number 794 fits into 5652 7 times, leaving a remainder of 94.
Put 7 as the next digit of the answer. 
Result so far: 6547.0
The remainder is 94 after subtracting 5558 from 5652.
Since there are no more digits in the dividend, we add a zero to the remainder making it 940, and continue the process.

Let's proceed to step 8:
If we divide 940 by 794, we get 1 and a remainder of 146.
The number 1 becomes the next digit in our result. 
Result so far: 6547.1
Subtract 794 from 940 to get 146.
Since there are no more digits in the dividend, we add a zero to the remainder making it 1460, and continue the process.

Advancing to step 9:
794 can be fit into 1460 1 times, resulting in a remainder of 666.
The number 1 becomes the next digit in our result. 
Result so far: 6547.11
Deduct 794 from 1460 and we're left with 666.
Since there are no more digits in the dividend, we add a zero to the remainder making it 6660, and continue the process.

The final result is 6547.11 with a remainder of 0.666.