We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Hello,
How can I print a number's significant figures?
Thanks!
The text was updated successfully, but these errors were encountered:
hi @ahmadtourei ,
If you mean "How can I get the total number of significant digits from a number given it's uncertainty?" then you could do something like:
"How can I get the total number of significant digits from a number given it's uncertainty?"
>>> len(round('2786273647632', uncertainty=57963, notation='eng').split('E')[0]) - 1 9
As an example with the number 2786273647632 and uncertainty 57963 yielding the total number of significant digits = 9.
2786273647632
57963
9
If you're looking for something else, could you clarify with an example?
Sorry, something went wrong.
No branches or pull requests
Hello,
How can I print a number's significant figures?
Thanks!
The text was updated successfully, but these errors were encountered: