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

Implement significant digits on output in bitc_util.py #59

Open
bas-rustenburg opened this issue Mar 11, 2015 · 0 comments
Open

Implement significant digits on output in bitc_util.py #59

bas-rustenburg opened this issue Mar 11, 2015 · 0 comments

Comments

@bas-rustenburg
Copy link
Member

Implement using 1 significant digit on the standard error.

We can use
https://pypi.python.org/pypi/sigfig/0.1

import sigfig

x = 1.234567
e1 = 0.12
e2 = 0.012
print(sigfig.round_unc(x,e1,crop=0))
print(sigfig.round_unc(x,e2,crop=0))

which returns

1.2
1.23
@bas-rustenburg bas-rustenburg changed the title Implement significant digits on ouput Implement significant digits on ouput in bitc_util.py Mar 11, 2015
@bas-rustenburg bas-rustenburg changed the title Implement significant digits on ouput in bitc_util.py Implement significant digits on output in bitc_util.py Mar 18, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant