Fix wrong precision value

Fixes https://github.com/bisq-network/bisq/issues/2615
This commit is contained in:
Manfred Karrer 2019-04-02 09:42:39 -05:00
parent 6387cfa5bf
commit 339198bb45
No known key found for this signature in database
GPG key ID: 401250966A6B2C46

View file

@ -560,7 +560,7 @@ public class BSFormatter {
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) {