小数点位数

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