摘要: double f= 1.4956 String.format("%.2f", f) DecimalFormat df = new DecimalFormat("#.00"); //强制小数点后两位 2.00 DecimalFormat df = new DecimalFormat("#.##"); 阅读全文
posted @ 2022-06-21 14:52 清明雨下 阅读(35) 评论(0) 推荐(0)