摘要: 数字格式化 1 private static void f() { 2 //保留两位小数:四舍五入 3 DecimalFormat decimalFormat = new DecimalFormat(".##"); 4 String format = decimalFormat.format(12. 阅读全文
posted @ 2020-07-11 15:00 细雨轻风 阅读(4229) 评论(0) 推荐(0) 编辑