BigDecimal类型数据保留两位小数即百分比运算 方法示例:DecimalFormat df = new DecimalFormat("0.00");Object price = 2;Object price1 = 2.3;Object price2 = 2.3154;String str = df.format(price);String str1 = df.format(price1);St... 大数据 2023-06-16 191 点赞 2 评论 289 浏览