摘要:
1DecimalFormatdf=newDecimalFormat();2doubledata=1234.56789;3System.out.println("格式化之前的数字:"+data);4Stringstyle="0.0";//定义要显示的数字的格式5df.applyPattern(style);//将格式应用于格式化器6System.out.println("采用style:"+style+"格式化之后:"+df.format(data));7style="00000.000kg";/ 阅读全文
posted @ 2011-09-02 15:54
Jet J.J.Cheng
阅读(379)
评论(0)
推荐(0)

浙公网安备 33010602011771号