-
-
Notifications
You must be signed in to change notification settings - Fork 73
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
cty: Maintain precision correctly in Multiply and Modulo
When working with big.Float values, it is important to ensure the desired precision for the operations is maintained throughout. The default precision for a Float is set initially by the max argument precision when creating the non-zero value. If this is coming from a Float which was set via SetInt, and that Int value was created by SetInt64, then the precision is only 64 bits.
- Loading branch information
Showing
2 changed files
with
41 additions
and
5 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