Aligning decimal numbers in LaTeX
November 29, 2006 · Tools & Systems
\begin{tabular}{ c r@{.}l r@{.}l }
& \multicolumn{2}{c}{Column 1} & \multicolumn{2}{c}{Column 2}\\
Data 1 & 3&505 & 33&832\\
Data 2 & 3&505 & 33&832\\
\end{tabular}
The trick is that you actually have two columns separated by a dot (".") aligned right and left.
The good thing is that you dont need any optional package (very handy when you write publications and want
your editor to use the source tex :) ).