摘要: 1.(double) (Math.round(sd3*10000)/10000.0); 这样为保持4位 (double) (Math.round(sd3*100)/100.0); 这样为保持2位. 2.另一种办法 import java.text.DecimalFormat; DecimalFormat df2 = new DecimalFormat("###.00"); Decimal... 阅读全文
posted @ 2009-02-13 10:37 sandy.beach 阅读(2459) 评论(0) 推荐(0) 编辑
摘要: @echo off if exist ipconfig.txt del ipconfig.txt ipconfig /all >ipconfig.txt if exist phyaddr.txt del phyaddr.txt find "Physical Address" ipconfig.txt >phyaddr.txt for /f "skip=2 tokens=12" %%M i... 阅读全文
posted @ 2009-02-12 21:39 sandy.beach 阅读(415) 评论(0) 推荐(0) 编辑