We divide 338246 by 9
The aim is to understand the frequency of 9 in 338246.

On to step 1:
The number 9 fits into 3 0 times, leaving a remainder of 3.
Record the quotient 0 as the next digit in the result. 
Result so far: 0.0
Subtracting 0 from 3 leaves us with 3.
Append the next digit (3) from the dividend to 3 and continue with: 33 / 9

Moving on to step 2:
33 divided by 9 is 3 with a remainder of 6.
The next digit of our result is 3. 
Result so far: 3.0
Subtract 27 from 33 to get 6.
Take the next digit (8) from the dividend and append it to 6, then repeat: 68 / 9

On to step 3:
68 divided by 9 is 7 with a remainder of 5.
Write down 7 as next digit of the result. 
Result so far: 37.0
Subtract 63 from 68 to get 5.
Bring next digit (2) of the dividend behind the 5 and repeat the process: 52 / 9

Let's proceed to step 4:
If we divide 52 by 9, we get 5 and a remainder of 7.
Record the quotient 5 as the next digit in the result. 
Result so far: 375.0
Deduct 45 from 52 and we're left with 7.
Include the next digit (4) from the dividend after 7, then repeat: 74 / 9

Advancing to step 5:
9 can be fit into 74 8 times, resulting in a remainder of 2.
Record the quotient 8 as the next digit in the result. 
Result so far: 3758.0
Deduct 72 from 74 and we're left with 2.
Take the next digit (6) from the dividend and append it to 2, then repeat: 26 / 9

Advancing to step 6:
9 can be fit into 26 2 times, resulting in a remainder of 8.
Put 2 as the next digit of the answer. 
Result so far: 37582.0
Deduct 18 from 26 and we're left 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.

Step 7:
The number 9 fits into 80 8 times, leaving a remainder of 8.
Write down 8 as next digit of the result. 
Result so far: 37582.8
Subtract 72 from 80 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.

Let's proceed to step 8:
The number 9 fits into 80 8 times, leaving a remainder of 8.
The number 8 becomes the next digit in our result. 
Result so far: 37582.88
Subtract 72 from 80 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.

The final result is 37582.88 with a remainder of 0.008.