double h = 45612645464645642d;
String strD = String.format("%f", h);
System.out.println("strD==="+strD);(1)如果h没有小数的话,为什么他默认的是六位小数;结果是:45612645464645642.000000 那位大侠给我解释下;
String strD = String.format("%f", h);
System.out.println("strD==="+strD);(1)如果h没有小数的话,为什么他默认的是六位小数;结果是:45612645464645642.000000 那位大侠给我解释下;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货