BigDecimal a = new BigDecimal(5); BigDecimal b = new BigDecimal(3); BigDecimal c = a.divide(b, 2, BigDecimal.ROUND_HALF_UP);//四舍五入
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/11034.html
BigDecimal a = new BigDecimal(5); BigDecimal b = new BigDecimal(3); BigDecimal c = a.divide(b, 2, BigDecimal.ROUND_HALF_UP);//四舍五入
原创文章,作者:Maggie-Hunter,如若转载,请注明出处:https://blog.ytso.com/11034.html