Using the siunitx package
\usepackage{siunitx}
Consider the following two tables:
1.
\begin{tabular}{
S[table-number-alignment=center, table-figures-decimal=3, table-auto-round]
}
3.23958398 \\
\end{tabular}
% => 3.234
2.
\begin{tabular}{
S[table-figures-decimal=3, table-auto-round]
}
3.23958398 \\
\end{tabular}
% => 3.23958398
In the former, the number gets rounded, but in the latter it does not. Ran under both pdflatex and xelatex. Can anyone explain?