We divide 798898 by 2
The aim is to understand the frequency of 2 in 798898.

Let's proceed to step 1:
The number 2 fits into 7 3 times, leaving a remainder of 1.
Record the quotient 3 as the next digit in the result. 
Result so far: 3.0
Subtract 6 from 7 to get 1.
Include the next digit (9) from the dividend after 1, then repeat: 19 / 2

On to step 2:
19 divided by 2 is 9 with a remainder of 1.
The next digit of our result is 9. 
Result so far: 39.0
If we take 18 away from 19, we end up with 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 2

Moving on to step 3:
If we divide 18 by 2, we get 9 and a remainder of 0.
Write down 9 as next digit of the result. 
Result so far: 399.0
If we take 18 away from 18, we end up with 0.
Take the next digit (8) from the dividend and append it to 0, then repeat: 8 / 2

Going ahead to step 4:
8 divided by 2 is 4 with a remainder of 0.
Record the quotient 4 as the next digit in the result. 
Result so far: 3994.0
Subtract 8 from 8 to get 0.
Take the next digit (9) from the dividend and append it to 0, then repeat: 9 / 2

Step 5:
When dividing 9 by 2, we get 4 with a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 39944.0
If we subtract 8 from 9, we get 1.
Fetch the next digit (8) from the dividend, attach it to 1 and continue: 18 / 2

Step 6:
18 divided by 2 is 9 with a remainder of 0.
Use 9 as the next digit of our solution. 
Result so far: 399449.0
The remainder is 0 after subtracting 18 from 18.
Since there are no more digits in the dividend, we add a zero to the remainder making it 0, and continue the process.

Advancing to step 7:
When dividing 0 by 2, we get 0 with a remainder of 0.
Record the quotient 0 as the next digit in the result. 
Result so far: 399449.0
If we subtract 0 from 0, we 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.

Step 8:
2 goes into 0 0 times with a remainder of 0.
The next digit of our result is 0. 
Result so far: 399449.0
If we take 0 away from 0, we end up 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.

Our division results in 399449.0 with a remaining 0.0.