Formulas with non-stoichiometric rational number coefficients do not represent molecular structures, but just empirical molar ratio of involved elements. For solid matter, unless it is composed from molecules, even formulas with small integer coefficients do not represent molecular structure, but are expressions of element molar ratios.
E.g. $\ce{CaF2}$ does not mean the respective mineral is composed from $\ce{CaF2}$ molecules, but it means the ratio of $\ce{Ca^2+}$ and $\ce{F-}$ ions is in the ratio 1 : 2.
Some natural or man-made compounds or materials do not have element ratios in small integer numbers, so their formulas use rational numbers. Formally, any multiple of given ratio can be used, but practically at least one coefficient is normalized to integer number. For cases 2 elements are interchangeable in composition, their coefficients often represent their mutual molar fraction, or its integer multiple. In other cases, there is taken an ideal formula as a template and non-integer coefficients express deviation from it.
For your case of $\ce{Hg_{0.7}Cd_{0.3}Te}$, the mixed cadmium/mercury telluride has both metals mutually interchangable with molar fraction coefficients. Note that they may not be quite nice and round 0.7 or 0.3, but generally any rational number between 0 and 1.
Take it as a particular formula for the general empirical formula $\ce{Hg_{x}Cd_{1-x}Te}$, $x \le 1$, $x \ge 0$.
For $x=0$, it is $\ce{CdTe}$, for $x=1$, it is $\ce{HgTe}$.
It is quite common form for formula notation of mixed chalkogenides where the coefficients are not stoichiometric.
Typical cases are metal oxides with more than 1 oxidation states, where coefficients are empirical. $\ce{FeO}$ is rather $\ce{Fe_{0.9x}O}$ as there is, aside of $\ce{Fe^{II}}$, also $\ce{Fe^{III}}$. The general formula could be $$\ce{Fe^{II}_{1-x}Fe^{III}_{x}O_{1+0.5x}}$$ or $$\ce{Fe^{II}_{\frac{1-x}{1+0.5x}}Fe^{III}_{\frac{x}{1+0.5x}}O}$$.
It could be formally written as $\ce{a FeO . b Fe2O3}$, but such a notation does not bring any advantage, as it does not represent any real molecular structure.
$\ce{Fe2O3}$ does not represent any real molecular structure either. It just happens that the molar ratio of elements is in this (idealized) case expressed in small integer numbers.