如何使用 Oracle Round 函數 (四舍五入) 描述 : 傳回一個數值,該數值是按照指定的小數位元數進行四舍五入運算的結果。 SELECT ROUND( number, [ decimal_places ] ) FROM DUAL 參數: number : 欲處理之數值 decimal_places : 四舍五入 , 小數取幾位 ( 預設為 0 ) Sample : select round(123.456, 0) from dual; 回傳 123 select round(123.456, 1) from dual; 回傳 123.5 select round(123.456, 2) from dual; 回傳 123.46 select round(123.456, 3) from dual; 回傳 123.456 select round(-123.456, 2) from dual; 回傳 -123.46