double d1 = 234.3434343;
DecimalFormat df = new DecimalFormat("#.00");
System.out.println(df.format(d1));
【学习笔记】double格式化
最新推荐文章于 2023-08-07 03:22:44 发布
double d1 = 234.3434343;
DecimalFormat df = new DecimalFormat("#.00");
System.out.println(df.format(d1));