I am trying to make a table with four columns: three of the columns are to be center aligned, and one is to be aligned by decimal places ( using S[table-format=3.2]). Here is my code:
\documentclass{article}
\usepackage{siunitx}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{c c S[table-format=3.2] c}
\toprule
\multicolumn{4}{c}{SI Prefixes} \\
%\hline \hline
\midrule \midrule
Prefix & Symbol & Multiplication Factor & $\ldots$ in Scientific Notation \\
\midrule
giga & G & 1000000000 & $10^9$ \\
mega & M & 1000000 & $10^6$ \\
kilo & k & 1000 & $10^3$ \\
deca & D & 10 & $10^1$ \\
\rowcolor{gray!20} - & - & 1 & $10^0$ \\
deci & d & 0.1 & $10^{-1}$ \\
centi & c & 0.01 & $10^{-2}$ \\
milli & m & 0.001 & $10^{-3}$ \\
micro & $\mu$ & 0.000001 & $10^{-6}$ \\
nano & n & 0.000000001 & $10^{-9}$ \\
\bottomrule
\end{tabular}
\end{document}
However, here is my result:
The columns are overlapping, and I cannot figure out how to fix it. I can't think of a way to set the width of the third column, as that would fix the issue, but to my understanding, you can only fix the width by doing something like p{5cm}; the S type will not allow that.


{...}around the heading so it isn't parsed as a number but main issue is you have specified a format of 3.2 so 2 decimal places but your numbers are 0.000000001 which have rather more than 2 digits after the point. Use a format that matches your data – David Carlisle Jan 04 '19 at 15:59siunitxbefore. The max amount of digits is 9, so would I put 3.9? – akenny430 Jan 04 '19 at 16:03\deca(\dekaworks too...) isda, notD. – Mico Jan 04 '19 at 16:15\mushould be printed in upright font, I guess? At least, it looks strange to see an italic\muwhile the rest of the prefix symbols are upright. – Jan May 12 '21 at 07:30siunitxcapabilities, to use the same input in the second til fourth column, whilesiunitxprints either the symbol, the number or the scientic repesentation of the number. So first line would read in the input asGiga & \giga & \giga & \giga \\? – Jan May 12 '21 at 07:35