round up java_java – BigDecimal.ROUND_HALF_UP和RoundingMode.HALF_UP之间的区别?
下面:new MathContext(precision, RoundingMode.HALF_UP);似乎工作.但是,以下内容返回错误:new MathContext(precision, BigDecimal.ROUND_HALF_UP);错误:java: no suitable constructor found for MathContext(int,int)constructor jav...