-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MathFlux sum/average retains BigDecimal scale (#261)
This commit ensures that no lossy conversion is made on a Number that happens to be a BigDecimal already. Furthermore, it uses the `new BigDecimal(String)` constructor instead of `valueOf`, since creating BigDecimal from doubles can sometimes result in less meaningful values due to double's limited precision. Fixes #260.
- Loading branch information
1 parent
4080569
commit a899661
Showing
3 changed files
with
41 additions
and
27 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
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