How to align integers on the right, but still center them
Using siunitx
you'd do
\documentclass{article}
\usepackage{booktabs,siunitx}
\begin{document}
\begin{tabular}{S[table-format=3.0]}
\toprule
{Heading} \\
\midrule
1 \\
10 \\
100 \\
\bottomrule
\end{tabular}
\end{document}
If you want it less complicated then use the \makebox
directly for the numbers
and \multicolumn
for the header.
\documentclass[a5paper]{article}
\usepackage{array,calc}
\newcolumntype{C}{>{\FormatNo} c }
\def\FormatNo\ignorespaces#1\\{%
\ignorespaces\makebox[\widthof{000}][r]{#1}\tabularnewline}
\begin{document}
\begin{tabular}{C}
\multicolumn{1}{c}{Heading} \\
1 \\
10 \\
100 \\
\end{tabular}
\end{document}