// 保留两位小数 四舍五入
double couponPrice = new BigDecimal(couponPrice).setScale(2, BigDecimal.ROUND_HALF_UP).doubleValue();// 舍弃后方的0 比如 2.30 变成2.3
DecimalFormat df = new DecimalFormat("#.###");
String str = df.format(couponPrice);
// 保留两位小数 四舍五入
double couponPrice = new BigDecima