2

Question

Is it possible to typeset a number with uncertainty and add the zeros to both the number and the uncertainty?

Description

I came to the conclusion that the uncertainty is breaking the formatting options but couldn't find any information about it. Should I use other options? Or is not possible to typeset the uncertainty with extra zeros?

What I mean is that the tabular displays of numbers 6 and 1 do not have the zeros that non uncertainty numbers have.

Example

\documentclass{standalone}
\usepackage{siunitx}

\sisetup{
scientific-notation=true,
table-format=1.1(1)e1,
separate-uncertainty,
round-integer-to-decimal,
round-mode = figures
}

\begin{document}
% these two behave the same
\num{1}
\num{1.}

% this one doesn't work
\begin{tabular}{S}
0.006(1) \\% this one has no zeros (nor decimal places)
1\\% this one is ok
1(1)% sames as the first
\end{tabular}
\end{document}

Current output

enter image description here

Expected output (without modifying the data)

enter image description here

  • Some trial and error: try 0.0060(10) and 1.0(10). As to why, I cannot really say much. – gusbrs Oct 26 '18 at 2:16
  • Yes those are the results I was looking for. However, I was expecting to do it automatically instead of changing the original data. Is there a way? – adn Oct 26 '18 at 12:01
  • That one turned off the scientific notation on the first one. And you are still changing the integer for a float on the third row. – adn Oct 26 '18 at 16:49
  • I updated the question with the expected output given the data on the MWE. – adn Oct 26 '18 at 16:56
  • adn, sorry, as the reason of this behavior eludes me, I haven't a clue as to how to get the desired results without changing the original data. – gusbrs Oct 26 '18 at 21:06

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.