-
Notifications
You must be signed in to change notification settings - Fork 540
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid Price.toString() failing for certain values of numerator/denomi…
…nator. Fixes a regression introduced in 66cc533 (bugfix #479) in which the numerator/denominator division fails with an ArithmeticException if no MathContext is provided. BigDecimal tries to return an exact result, which is not possible when rounding and precision aren't specified. See BigDecimal javadoc: http://docs.oracle.com/javase/7/docs/api/java/math/BigDecimal.html Fixes Crashlitics issue #196 https://fabric.io/gnucash/android/apps/org.gnucash.android/issues/571b4a95ffcdc04250f98ba0
- Loading branch information
Showing
2 changed files
with
23 additions
and
1 deletion.
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