How do I get \$
values centered properly in this table?
This should be straightforward, but a frustrating search on this site and in siunitx
documentation didn't help me. Of course I can always put the units in the header row, as in the first column, but I'm curious.
MWE:
\documentclass{article}
\usepackage{booktabs}
\usepackage{siunitx}
\begin{document}
\begin{tabular}{cS[table-format=3.2]S[table-format=2.0]S[table-format=4.2]}
\toprule
Plan & {Phone cost (\$)} & {Monthly charge} & {Two year cost} \\
\midrule
Cricket Wireless & 499.99 & \$55 & \$1,819.99 \\
Virgin Mobile & 649 & \$30 & \$1,369 \\
\bottomrule
\end{tabular}
\end{document}
($)
in the header of all columns?