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