We look at the division of 479398 by 9 
The aim is to understand the frequency of 9 in 479398.

On to step 1:
9 goes into 4 0 times with a remainder of 4.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Deduct 0 from 4 and we're left with 4.
Bring next digit (7) of the dividend behind the 4 and repeat the process: 47 / 9

Moving on to step 2:
The number 9 fits into 47 5 times, leaving a remainder of 2.
Use 5 as the next digit of our solution. 
Result so far: 5.0
Deduct 45 from 47 and we're left with 2.
Grab the next digit (9) from the dividend, add it to 2, then carry on: 29 / 9

Advancing to step 3:
The number 9 fits into 29 3 times, leaving a remainder of 2.
Use 3 as the next digit of our solution. 
Result so far: 53.0
If we subtract 27 from 29, we get 2.
Include the next digit (3) from the dividend after 2, then repeat: 23 / 9

Step 4:
When dividing 23 by 9, we get 2 with a remainder of 5.
Use 2 as the next digit of our solution. 
Result so far: 532.0
The remainder is 5 after subtracting 18 from 23.
Append the next digit (9) from the dividend to 5 and continue with: 59 / 9

Going ahead to step 5:
When dividing 59 by 9, we get 6 with a remainder of 5.
Put 6 as the next digit of the answer. 
Result so far: 5326.0
If we subtract 54 from 59, we get 5.
Take the next digit (8) from the dividend and append it to 5, then repeat: 58 / 9

Going ahead to step 6:
9 goes into 58 6 times with a remainder of 4.
Record the quotient 6 as the next digit in the result. 
Result so far: 53266.0
If we subtract 54 from 58, we get 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 7:
40 divided by 9 is 4 with a remainder of 4.
The number 4 becomes the next digit in our result. 
Result so far: 53266.4
Subtracting 36 from 40 leaves us with 4.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

Moving on to step 8:
40 divided by 9 is 4 with a remainder of 4.
Put 4 as the next digit of the answer. 
Result so far: 53266.44
The remainder is 4 after subtracting 36 from 40.
Since there are no more digits in the dividend, we add a zero to the remainder making it 40, and continue the process.

The final result is 53266.44 with a remainder of 0.004.