Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow zero as one of the values for an asymmetric uncertainty #687

Open
kh296 opened this issue Aug 23, 2023 · 0 comments
Open

Allow zero as one of the values for an asymmetric uncertainty #687

kh296 opened this issue Aug 23, 2023 · 0 comments

Comments

@kh296
Copy link

kh296 commented Aug 23, 2023

In some cases, either the upper or lower value of an asymmetric uncertainty may be zero. For example, if the ratio of successes to trials for a binomial process is high, then the best estimate of the ratio from a given set of trials may be 1, in which case the upper uncertainty is 0.

The present behaviour in siunitx is:

\num{20.01(0:2)} gives the same as \num{20.01(2)} 

\num{20.01(2:0)} gives the same as \num{20.01} 

It would be nice instead if the 0 could be retained as subscript or superscript:

\num{20.01(0:2)} should give something like $20.01^{+0.00}_{-0.02}$

\num{20.01(2:0)} should give something like $20.01^{+0.02}_{-0.00}$

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant