-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cover int64/bigInt with tests, address precision handling
In testing amounts at and near max int64, the hard-coded precision at 16 digits caused the amounts to be silently zeroed out. Predicting the correct precision isn't exact, and should be extended, but attempts to over-estimate the required precision to perform the calculation.
- Loading branch information
Showing
2 changed files
with
148 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters