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

Test and document interactions with decimal module context #183

Open
jagerber48 opened this issue Jul 31, 2024 · 0 comments
Open

Test and document interactions with decimal module context #183

jagerber48 opened this issue Jul 31, 2024 · 0 comments

Comments

@jagerber48
Copy link
Owner

The documentation indicates that sciform rounds using round-half-to-even rounding. This is true by default, but will be changed if the user modifies the decimal module context rounding option. This behavior should be documented and tested.

It is worth considering the following options:

  • Explicitly configure sciform to always use decimal.ROUND_HALF_EVEN to avoid implicit coupling with users configuring the decimal context
  • Extend the above proposal to include a user-configurable rounding strategy. This would provide more features, but it would also add even more configuration.

Likewise, the configurable decimal module precision can affect sciform formatting results.

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