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

pdg_sig_figs value rounding issue with zero or non-finite uncertainty #71

Closed
jagerber48 opened this issue Oct 23, 2023 · 1 comment
Closed

Comments

@jagerber48
Copy link
Owner

from sciform import Formatter, FormatOptions
sform = Formatter(FormatOptions(pdg_sig_figs=True))
print(sform(123, 0))

erroneously results in '120 +/- 0'. The value is erroneously rounded according to pdg sig fig rules, but these rules should only apply t the uncertainty. In this case, the value should be rounded according to the AutoDigits rules.

@jagerber48
Copy link
Owner Author

closed by #67

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