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