Skip to content

Commit

Permalink
Merge pull request #2616 from ManfredKarrer/fix-percentage-rounding-bug
Browse files Browse the repository at this point in the history
Fix wrong precision value
  • Loading branch information
ripcurlx authored Apr 2, 2019
2 parents 21e6306 + 339198b commit 4bbbb63
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/main/java/bisq/core/util/BSFormatter.java
Original file line number Diff line number Diff line change
Expand Up @@ -560,7 +560,7 @@ public double parsePercentStringToDouble(String percentString) throws NumberForm
String input = percentString.replace("%", "");
input = cleanDoubleInput(input);
double value = Double.parseDouble(input);
return MathUtils.roundDouble(value / 100d, 2);
return MathUtils.roundDouble(value / 100d, 4);
}

public long parsePriceStringToLong(String currencyCode, String amount, int precision) {
Expand Down

0 comments on commit 4bbbb63

Please sign in to comment.