# siunitx and missing decimal point

\si seems to be not showing decimal points, unless I specifically specify \num.

\documentclass[12pt]{report}
\usepackage{siunitx}

\begin{document}
\si{12.5\milli\gram}

\si{\num{12.5}\milli\gram}
\end{document}


Is this expected behavior?

• You are using the wrong command: \SI{12.5}{\milli\gram} is what you want. The \si command is for units and treats . as a separator (inherited from older packages in the area). – Joseph Wright Dec 2 '16 at 15:52

The command \si{units} is for units only. You have to use the \SI{number}{units} for what you want to do.