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

Formatter should accept SciNum input #103

Open
jagerber48 opened this issue Jan 7, 2024 · 1 comment
Open

Formatter should accept SciNum input #103

jagerber48 opened this issue Jan 7, 2024 · 1 comment

Comments

@jagerber48
Copy link
Owner

It should be possible to pass SciNum objects (in addition to float, int, str, Decimal) into the Formatter.

@jagerber48
Copy link
Owner Author

What should happen for Formatter(SciNum(42, 2.17), 3.14)? That is, the SciNum passed in includes both a value and an uncertainty, but a number is also passed in for the uncertainty? I think an exception should be raised in this case indicating invalid input.

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

When branches are created from issues, their pull requests are automatically linked.

1 participant