3

\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}

enter image description here

Is this expected behavior?

  • 9
    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
6

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.