無條件捨去到小數點以下1位 (int)(Math.floor(x*10))/10.0 ); ... 如果不想四捨五入,那直接改round()方法為floor()或者ceil()方法即可.
確定! 回上一頁