I have a table that uses the S column type provided by siunitx
. Unfortunately, if a number does not have a .
it is not aligned properly. Yes, i could write number.
but then the table will list the entry as number.0
instead of just number
.
\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{table} \centering
{\small
\begin{tabular}{SS}
\toprule
{x} &{x} \\
\midrule
123 & 23.0e-5 \\
123.0 & 23\\
0.23 & 1.423 \\
0.23 & 1 \\
\bottomrule
\end{tabular}}
\end{table}
\end{document}
siunitx
thetable-format
(at least withparse-numbers = true
, the standard setting).