![]() |
|||
|
![]() |
![]() |
|
FULL A - Z Oracle Function Library (formerly named "Morgan's Library")
![]() Term: ROUND
Definition: ROUND( n, X) In the syntax example above, "n" can be a numeric or date type input. "X" is the rounding format. Date type inputs can be rounded by year, month, quarter, week, hour and minute. Example Usage: The below set of SQL statements show the use of the ROUND function with both Number and Date inputs. In the first two examples, note the difference in the results by having positive and negative precisions. If the precision is positive, it rounds the digits which are placed after the decimal. For negative precision values, it rounds the digits which are placed before the decimal place. SQL> SELECT ROUND(1.2536,2) FROM DUAL; Related Links:
Related Code Snippets:
![]() ![]() ![]() |
![]() |
Home | Search | Code Library | Sponsors | Privacy | Terms of Use | Contact Us | © 2003 - 2025 psoug.org |