In the following MWE the last number in the test statistic column, doesn't get aligned to the decimal separator. Although the additional asterisks are explicitly defined in the column definition. I tried a lot of different options, but could not get it to work properly.
\documentclass{article}
\usepackage{breqn}
\usepackage{siunitx}
\usepackage{tabularx}
\usepackage{booktabs}
\begin{document}
\begin{table}[htb]
\newcommand{\ColWidthTestResults}{0.12}
\footnotesize
\sisetup{table-parse-only}
\begin{center}
\begin{tabularx}{\textwidth}{>{\centering}X
>{\centering}p{0.005\textwidth}
S[table-format=3.2
, table-number-alignment = center
, table-space-text-post = {$^{***}$}
, table-space-text-pre = {$^{***}$}
, round-precision=2
, round-integer-to-decimal = true
]
>{\centering}p{0.005\textwidth}
>{\centering}p{\ColWidthTestResults\textwidth}
>{\centering}p{\ColWidthTestResults\textwidth}
>{\centering}p{\ColWidthTestResults\textwidth}
}
\toprule
rank & & {test statistic} & & 10\% & 5\% & 1\% \tabularnewline
\cmidrule{1-1} \cmidrule{3-3} \cmidrule{5 - 7}
r $\leq$ 2 & & \num{2.88} & & 21.03 & 23.60 & 28.94\tabularnewline
r $\leq$ 1 & & \num{23.58} & & 42.20 & 45.54 & 52.27\tabularnewline
r $=$ 0 & & \num{236.20}{$^{***}$} & & 67.02 & 71.08 & 79.11 \tabularnewline
\bottomrule
\end{tabularx}\caption{Misaligned decimal separator}
\end{center}
\end{table}
\end{document}
Ideally the numbers should all be aligned on the decimal separator, no matter how many asterisks or how long the integer part of the decimals is.
siunitx
do you have?