sxt-proof-of-sql
sxt-proof-of-sql copied to clipboard
refactor: tidy up `decimal` module
Rationale for this change
After #283, the math::decimal
module is a bit untidy, especially around error types and tests.
What changes are included in this PR?
This reorganizes the module, tidies things up, and adds some more thorough unit tests. Please look at the individual commits since there is a lot of code moved, and the individual commits are smaller than the aggregate.
Are these changes tested?
Yes