标签:print big div form hal class for format nbsp
BigDecimal bigDecimal2 = BigDecimal.ZERO.setScale(4, BigDecimal.ROUND_HALF_UP); System.out.println(bigDecimal2.toString());//0.0000 DecimalFormat df2 =new DecimalFormat("0.0000"); String str2 =df2.format(Double.parseDouble(bigDecimal2.toString())); System.out.println(str2);//0.0000
标签:print big div form hal class for format nbsp
原文地址:https://www.cnblogs.com/lingtiaoti/p/12863504.html