parseDouble(str); 8 DecimalFormat df=new DecimalFormat("###.00"); 9 return df.format(a); 10 }. 1.2 初看好像沒什麼問題,四捨五入保留兩位小數,最後輸出3.15。
確定! 回上一頁