round to 2 decimal places

This commit is contained in:
sidhujag 2018-06-03 18:13:22 -07:00
parent 5be8f10551
commit b7366c24b7
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}
}