round to 2 decimal places
This commit is contained in:
parent
5be8f10551
commit
b7366c24b7
|
@ -104,6 +104,6 @@ public class CoinmarketcapRateSource implements IRateSource {
|
|||
return null;
|
||||
}
|
||||
double price = (double) quote.get("price");
|
||||
return new BigDecimal(price);
|
||||
return new BigDecimal(price).setScale(2);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue