double d3 = 2.0; df.format(d1); df.format(d2); df.format(d3);. 3個結果分別為: 複製程式碼 程式碼如下: 3.23 0.00 2.00. java保留兩位小數問題:.
確定! 回上一頁