You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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 thedecimal
module contextrounding
option. This behavior should be documented and tested.It is worth considering the following options:
sciform
to always usedecimal.ROUND_HALF_EVEN
to avoid implicit coupling with users configuring thedecimal
contextLikewise, the configurable
decimal
module precision can affectsciform
formatting results.The text was updated successfully, but these errors were encountered: