Let's divide 798704 by 9
The aim is to understand the frequency of 9 in 798704.

On to step 1:
9 goes into 7 0 times with a remainder of 7.
Write down 0 as next digit of the result. 
Result so far: 0.0
The remainder is 7 after subtracting 0 from 7.
Bring next digit (9) of the dividend behind the 7 and repeat the process: 79 / 9

Going ahead to step 2:
The number 9 fits into 79 8 times, leaving a remainder of 7.
Write down 8 as next digit of the result. 
Result so far: 8.0
If we take 72 away from 79, we end up with 7.
Fetch the next digit (8) from the dividend, attach it to 7 and continue: 78 / 9

On to step 3:
If we divide 78 by 9, we get 8 and a remainder of 6.
The number 8 becomes the next digit in our result. 
Result so far: 88.0
If we take 72 away from 78, we end up with 6.
Bring next digit (7) of the dividend behind the 6 and repeat the process: 67 / 9

Let's proceed to step 4:
The number 9 fits into 67 7 times, leaving a remainder of 4.
Write down 7 as next digit of the result. 
Result so far: 887.0
Subtracting 63 from 67 leaves us with 4.
Fetch the next digit (0) from the dividend, attach it to 4 and continue: 40 / 9

Advancing to step 5:
9 can be fit into 40 4 times, resulting in a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 8874.0
Subtracting 36 from 40 leaves us with 4.
Grab the next digit (4) from the dividend, add it to 4, then carry on: 44 / 9

Let's proceed to step 6:
44 divided by 9 is 4 with a remainder of 8.
The number 4 becomes the next digit in our result. 
Result so far: 88744.0
Subtract 36 from 44 to get 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Moving on to step 7:
80 divided by 9 is 8 with a remainder of 8.
Put 8 as the next digit of the answer. 
Result so far: 88744.8
If we take 72 away from 80, we end up with 8.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Advancing to step 8:
9 goes into 80 8 times with a remainder of 8.
The number 8 becomes the next digit in our result. 
Result so far: 88744.88
The remainder is 8 after subtracting 72 from 80.
Since there are no more digits in the dividend, we add a zero to the remainder making it 80, and continue the process.

Our division results in 88744.88 with a remaining 0.008.