Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Respect precision while formatting Amount
All characters beyond the needed precision are truncated In the case of a SignedAmount the default precision is now 8 just like the Amount Replaces self.fmt_value_in() with fmt_satoshi_in() so that FomartOptions is not made public which would be the requirements if self.fmt_value_in() is used. Tests have been improved to handle precision Resolves: #2136
- Loading branch information
Showing
2 changed files
with
68 additions
and
22 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