The ceil and floor functions are sometimes useful for some business data.
ceil(n) takes the smallest integer greater than or equal to the value n; (ceil refers to the roof and ceiling in Chinese, and the function functions to round up )
floor(n) takes the largest integer less than or equal to the value n (floor refers to the floor in Chinese, and the function acts to take down whole) the
following example
SQL> select ceil(9.5) from dual; CEIL(9.5) ---------- 10 SQL> select floor(9.5) from dual; FLOOR(9.5) ------- --- 9
Oracle round up function
Guess you like
Origin http://43.154.161.224:23101/article/api/json?id=326221950&siteId=291194637
Recommended
Ranking