Course
Simulator
More
Premium
Log in
PostgreSQL Function Reference
Functions
ROUND
ROUND
Rounds the number to the nearest integer or to the specified precision.
PostgreSQL 17.5
ROUND
(
number
[
,
precision
]
)
number
The input number.
precision
The number of decimal places (optional).
Examples
PostgreSQL 17.5
SELECT
ROUND
(
5.75
,
1
)