请问一下 Table 中的数据怎么在 decimal point 处对齐啊?
\documentclass{article}
\usepackage{amsmath}
\pagestyle{empty}
\begin{document}
\begin{tabular}{cc}
\hline\hline
Carbon atoms & Magnetic moments ($\mu_{\mathrm{B}}$) \\ \hline
C1 & $-0.002$ \\
C2 & $-0.002$ \\
C3 & $ 0.004$ \\
C4 & $ 0.002$ \\
C5 & $ 0.000$ \\
C6 & $ 0.000$ \\
\hline\hline
\end{tabular}
\documentclass{article}
\usepackage{amsmath}
\usepackage{siunitx}
\pagestyle{empty}
\begin{document}
\begin{tabular}{cS}
\hline\hline
{Carbon atoms} & {Magnetic moments ($\mu_{\mathrm{B}}$)} \\ \hline
C1 & -0.002 \\
C2 & -0.002 \\
C3 & 0.004 \\
C4 & 0.002 \\
C5 & 0.000 \\
C6 & 0.000 \\
\hline\hline
\end{tabular}
\end{document}