\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?
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It only takes a minute to sign up.
Sign up to join this community\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?
The command \si{units}
is for units only. You have to use the \SI{number}{units}
for what you want to do.
I guess i am replying really late for your query, but you should use \num
directly and not nest it in \si
.
For a number
\num{12.5}
and \SI
(in upper case) for a number with a unit
\SI{12.5}{\milli\gram}
\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).