# Mhchem with decimal ratios

Without using full math-mode, does anyone know how to use the mhchem package with non-integer atomic subscripts.

Consider the following:

\documentclass{article}
\usepackage[version=3]{mhchem}

\begin{document}
%Works
\ce{Fe98C2}

%Doesn't Work.
\ce{Fe97.5C2.5}
\end{document}


The Second Formula I am seeking effectively:

Fe$_{97.5}$C$_{2.5}$

• \ce{Fe_{97.5}C_{2.5}} works – Leeser Jun 13 '13 at 7:56
• @Leeser Sorry, I didn't see your comment while posting my answer. If you want to post it as an answer, I'll delete mine. – karlkoeller Jun 13 '13 at 8:00
• @karlkoeller Thanks for your generosity...I probably need the kudos more than you !!!! I will post as an answer – Leeser Jun 13 '13 at 8:42
• @ Leeser, you've beaten me for a minute, so the answer is yours:-) – karlkoeller Jun 13 '13 at 8:45

\ce{Fe_{97.5}C_{2.5}}

As @karlkoeller mentioned in a similar answer (now deleted), the . is a special character inside \ce