For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!
Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.
round ()
SQL> SELECT ROUND(100.1234,2) FROM dual; ROUND(100.1234,2) ------------------- 100.12 SQL> SELECT ROUND(1.123,1) FROM dual; ROUND(1.123,1) ---------------- 1.1 SQL>
with testdata as (select level/3-2 num from dual connect by level<=15) select num, round(num), ceil(num) from testdata; NUM ROUND CEIL ------------------------------------------------ -1,67 -2 -1 -1,33 -1 -1 -1 -1 -1 -0,67 -1 0 -0,33 0 0 0 0 0 0,33 0 1 0,67 1 1 1 1 1 1,33 1 2 1,67 2 2 2 2 2 2,33 2 3 2,67 3 3 3 3 3