OK, what am I missing here? Why is the S
column not aligning on the decimal:
The desired result is the data aligned on the decimal and centered within the column:
Code:
\documentclass{article}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{S}
\multicolumn{1}{c}{Measured Values} \\
\SI{0.003 1}{\meter} \\
\SI{0.003 123}{\meter} \\
\SI{0.003 45}{\meter} \\
\end{tabular}
\end{document}
Best Answer
In case if you have to use different units for different numbers, you have these possibilities with
table-space-text-post
andtable-align-text-post
:There is also
pre
version of above commands -table-align-text-pre
which does the same before the number.