Let's divide 796798 by 4
We're looking to find how many times 4 goes into 796798.

On to step 1:
When dividing 7 by 4, we get 1 with a remainder of 3.
Put 1 as the next digit of the answer. 
Result so far: 1.0
The remainder is 3 after subtracting 4 from 7.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 4

On to step 2:
4 goes into 39 9 times with a remainder of 3.
Use 9 as the next digit of our solution. 
Result so far: 19.0
Deduct 36 from 39 and we're left with 3.
Include the next digit (6) from the dividend after 3, then repeat: 36 / 4

Going ahead to step 3:
When dividing 36 by 4, we get 9 with a remainder of 0.
The next digit of our result is 9. 
Result so far: 199.0
If we take 36 away from 36, we end up with 0.
Bring next digit (7) of the dividend behind the 0 and repeat the process: 7 / 4

Let's proceed to step 4:
When dividing 7 by 4, we get 1 with a remainder of 3.
The next digit of our result is 1. 
Result so far: 1991.0
If we subtract 4 from 7, we get 3.
Include the next digit (9) from the dividend after 3, then repeat: 39 / 4

Going ahead to step 5:
39 divided by 4 is 9 with a remainder of 3.
The number 9 becomes the next digit in our result. 
Result so far: 19919.0
The remainder is 3 after subtracting 36 from 39.
Append the next digit (8) from the dividend to 3 and continue with: 38 / 4

Advancing to step 6:
38 divided by 4 is 9 with a remainder of 2.
Write down 9 as next digit of the result. 
Result so far: 199199.0
If we take 36 away from 38, we end up with 2.
Since there are no more digits in the dividend, we add a zero to the remainder making it 20, and continue the process.

On to step 7:
When dividing 20 by 4, we get 5 with a remainder of 0.
Use 5 as the next digit of our solution. 
Result so far: 199199.5
Deduct 20 from 20 and we're left with 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

On to step 8:
0 divided by 4 is 0 with a remainder of 0.
The number 0 becomes the next digit in our result. 
Result so far: 199199.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Going ahead to step 9:
4 goes into 0 0 times with a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 199199.5
Subtract 0 from 0 to get 0.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

The final result is 199199.5 with a remainder of 0.0.