Skip to content

Commit

Permalink
Merge pull request #4311 from jmacxx/higher_precision_prices
Browse files Browse the repository at this point in the history
Increase price precision in Offer Book chart (altcoins)
  • Loading branch information
sqrrm authored Jul 1, 2020
2 parents a54eeea + 37331cd commit 594b1a4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ public String toString(Number object) {
final double doubleValue = (double) object;
if (CurrencyUtil.isCryptoCurrency(model.getCurrencyCode())) {
final String withCryptoPrecision = FormattingUtils.formatRoundedDoubleWithPrecision(doubleValue, cryptoPrecision);
if (withCryptoPrecision.equals("0.000")) {
if (withCryptoPrecision.substring(0,3).equals("0.0")) {
cryptoPrecision = 8;
return FormattingUtils.formatRoundedDoubleWithPrecision(doubleValue, cryptoPrecision);
} else {
Expand Down

0 comments on commit 594b1a4

Please sign in to comment.