因為Java(大部分程式語言都是)是使用IEEE754演算標準,小數計算會有誤差,所以需要 ... Math.round(5.4); //四捨五入Math.ceil(5.4); //無條件進位Math.floor(5.4); ...
確定! 回上一頁