I am trying to align the two columns of my table in the center (I want to keep the alignment of the decimal point) but I can't. Any advise?
\documentclass{article}
\usepackage{dcolumn,booktabs}
\begin{table}[H]
\centering
\caption{Example Table}
\label{table:4.2}
\resizebox{\textwidth}{!}{%
\newcolumntype{.}{D{.}{.}{6}}
\begin{tabular}{ . .}
\toprule
\multicolumn{2}{c}{\textbf{Two columns aligned at center and at the decimal point}} \\
\midrule
-0.000830 & -0.0013 \\
-0.000920 & -0.00088 \\
0.001769 & 0.00165 \\
0.000389 & -0.00255 \\
-0.001510 & -0.00155 \\
-0.001560 & -0.00176 \\
-0.003250 & 0.003311 \\
-0.001920 & -0.00022 \\
0.001769 & 0.00165 \\
-0.001560 & -0.00176 \\
-0.003250 & 0.003311 \\
\bottomrule
\end{tabular}
}
\end{table}
\end{document}


dcolumn. – egreg Jun 14 '17 at 10:31