minimal (non)-working example:
\documentclass{article}
\usepackage{siunitx}
\usepackage{pgfplotstable}
\usepackage{filecontents}
\pgfplotstableset{
header=true,
trim cells=true,
col sep=comma,
secure header/.style={
columns/#1/.append style={
column name={\multicolumn{1}{c}{#1}},
}
},
si column/.style={
columns/#1/.append style={
string type,
column type={S[table-format=2.2e1]},
}
},
}
\begin{document}
number to print: 3433010912
\pgfmathparse{3433010912}
siunitx result:
\num[scientific-notation=engineering,round-mode=places,round-precision=2]{\pgfmathresult}
\begin{filecontents*}{data.csv}
works, doesn't work
147385274, 3433010912
\end{filecontents*}
this table is wrong:
\pgfplotstableread{data.csv}{\Data}
% this produces an error
\sisetup{scientific-notation = engineering, table-auto-round=true}
\pgfplotstabletypeset[%
columns={works, doesn't work},
secure header/.list={works, doesn't work},
si column/.list={works, doesn't work},
]{\Data}
this table is right, but the alignment for the long header is not nice:
% this works
\pgfplotstabletypeset[%
columns={works, doesn't work},
columns/works/.style={sci,sci sep align},
columns/{doesn't work}/.style={sci,sci sep align},
]{\Data}
\end{document}
I get the numbers to print from pgfplotstable and therefore from a csv-file. All questions related to siunitx and "Number too big" I found are related to small numbers with to many digits, but not numbers that are actualy to big.
How do I get the value to siunitx so it is readable?
siunitx
do you have (it says in the.log
file): this should be fixed in the current release.