new BigDecimal(Value).setScale(*, RoundingMode.HALF_UP)*表示你要保留的小数位。 转载于:https://www.cnblogs.com/g-yang/p/8418451.html