怎么把double轉成string?
java.text.DecimalFormat df = new DecimalFormat("#.###");double aaa=123.45233String str=df.format(aaa);這樣就保留三位小數轉換成字符串了
怎么把double轉成string?
java.text.DecimalFormat df = new DecimalFormat("#.###");double aaa=123.45233String str=df.format(aaa);這樣就保留三位小數轉換成字符串了