返回大于或等于x的最大整数:
SQL> select ceil(24.22) from dual;
CEIL(24.22)
-----------
25
返回等于或小于x的最大整数:
SQL> select floor(24.22) from dual;
FLOOR(24.22)
------------
24
返回舍入到小数点右边y位的x值:round(x,[y]) ,四舍五入
SQL> select round(24.25,1) from dual;
ROUND(24.25)
------------
24.3
返回截尾到y位小数的x值:trunc(x,[y]) ,不四舍五入
SQL> select trunc(24.22,1) from dual;
TRUNC(24.22)
------------
24.2
SQL> select ceil(24.22) from dual;
CEIL(24.22)
-----------
25
返回等于或小于x的最大整数:
SQL> select floor(24.22) from dual;
FLOOR(24.22)
------------
24
返回舍入到小数点右边y位的x值:round(x,[y]) ,四舍五入
SQL> select round(24.25,1) from dual;
ROUND(24.25)
------------
24.3
返回截尾到y位小数的x值:trunc(x,[y]) ,不四舍五入
SQL> select trunc(24.22,1) from dual;
TRUNC(24.22)
------------
24.2