[Tex/LaTex] siunitx number too big when trying to round

siunitxtables

Using the siunitx package

\usepackage{siunitx}

I am trying to put numbers with plenty of decimal digits in a table while rounding them to 3 digits after the decimal point. There is a compilation error saying ! Number too big.. I tried to change the expected digit amounts to a thousand, but this does not work:

\begin{table}
  \sisetup{
    table-number-alignment = center,
    table-figures-exponent = 1000,
    table-figures-integer = 1000,
    table-figures-uncertainty = 1000,
    table-figures-decimal = 1000,
    table-sign-mantissa,
    table-sign-exponent,
    table-auto-round
  }
  \begin{tabular}{
    S
    S
    S
    S
  }
  0.2 & 0.6903200460356393 & 0.625 & -6.532004603563935e-2 \\ 
  \end{tabular}
\end{table}

Is there a fix?

Best Answer

This is fixed in the latest siunitx release (try v2.4j or later), although your table-figures-exponent = 1000 will fail. Try

\documentclass{article}
\usepackage{siunitx}
\begin{document}
\begin{table}
  \sisetup{
    table-format = -1.3e-1,
    table-number-alignment = center,
    table-auto-round
  }
  \begin{tabular}{
    S
    S
    S
    S
  }
  0.2 & 0.6903200460356393 & 0.625 & -6.532004603563935e-2 \\ 
  \end{tabular}
\end{table}
\end{document}
Related Question