Java中的math類比較

當 參數 > 0 時: Math.floor = 偏小值,等於個位數 Math.round = 四捨五入的值 Math.ceil = 偏大值,等於個位數+1 當參數 < 0 時: Math.floor = 偏小值,個位數+1 Math.round = 負的四捨五入 Math.ceil = 偏大值,等於個位數
相關文章
相關標籤/搜索