PostgreSQL ROUND() function
ROUND() function
The PostgreSQL round() function is used to return the value after rounded a number upto a specific decimal places, provided in the argument.
Syntax:
random()
PostgreSQL Version: 9.3
Pictorial presentation of PostgreSQL ROUND() function

Example 1: PostgreSQL ROUND() function
Code:
SELECT ROUND(67.456) AS "Round";
Sample Output:
Round ------- 67 (1 row)
Example 2: PostgreSQL ROUND() function
Code:
SELECT ROUND(67.456,1) AS "Round upto 1 decimal";
Sample Output:
Round upto 1 decimal ---------------------- 67.5 (1 row)
Example 3: PostgreSQL ROUND() function
Code:
SELECT ROUND(67.456,2) AS "Round upto 2 decimal";
Sample Output:
Round upto 2 decimal ---------------------- 67.46 (1 row)
Previous: RANDOM function
Next: SIGN function
- Exercises: Weekly Top 12 Most Popular Topics
- Pandas DataFrame: Exercises, Practice, Solution
- Conversion Tools
- JavaScript: HTML Form Validation
- SQL Exercises, Practice, Solution - SUBQUERIES
- C Programming Exercises, Practice, Solution : For Loop
- Python Exercises, Practice, Solution
- Python Data Type: List - Exercises, Practice, Solution
- C++ Basic: Exercises, Practice, Solution
- SQL Exercises, Practice, Solution - exercises on Employee Database
- SQL Exercises, Practice, Solution - exercises on Movie Database
- SQL Exercises, Practice, Solution - exercises on Soccer Database
- C Programming Exercises, Practice, Solution : Recursion