Let's divide 998712 by 2
The aim is to understand the frequency of 2 in 998712.

Step 1:
The number 2 fits into 9 4 times, leaving a remainder of 1.
Put 4 as the next digit of the answer. 
Result so far: 4.0
The remainder is 1 after subtracting 8 from 9.
Append the next digit (9) from the dividend to 1 and continue with: 19 / 2

Advancing to step 2:
If we divide 19 by 2, we get 9 and a remainder of 1.
The number 9 becomes the next digit in our result. 
Result so far: 49.0
If we take 18 away from 19, we end up with 1.
Append the next digit (8) from the dividend to 1 and continue with: 18 / 2

Let's proceed to step 3:
The number 2 fits into 18 9 times, leaving a remainder of 0.
Put 9 as the next digit of the answer. 
Result so far: 499.0
If we subtract 18 from 18, we get 0.
Fetch the next digit (7) from the dividend, attach it to 0 and continue: 7 / 2

Let's proceed to step 4:
When dividing 7 by 2, we get 3 with a remainder of 1.
The next digit of our result is 3. 
Result so far: 4993.0
Subtracting 6 from 7 leaves us with 1.
Bring next digit (1) of the dividend behind the 1 and repeat the process: 11 / 2

Let's proceed to step 5:
2 can be fit into 11 5 times, resulting in a remainder of 1.
Record the quotient 5 as the next digit in the result. 
Result so far: 49935.0
If we subtract 10 from 11, we get 1.
Include the next digit (2) from the dividend after 1, then repeat: 12 / 2

Let's proceed to step 6:
2 can be fit into 12 6 times, resulting in a remainder of 0.
Put 6 as the next digit of the answer. 
Result so far: 499356.0
If we subtract 12 from 12, 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.

On to step 7:
The number 2 fits into 0 0 times, leaving a remainder of 0.
The next digit of our result is 0. 
Result so far: 499356.0
Subtracting 0 from 0 leaves us 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.

Advancing to step 8:
If we divide 0 by 2, we get 0 and a remainder of 0.
Use 0 as the next digit of our solution. 
Result so far: 499356.0
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.

Our division results in 499356.0 with a remaining 0.0.