"Gaietti, Mauro \(SELEX GALILEO Guest, Italy\)" <mauro.gaie...@guests.selexgalileo.com> writes: > I think this is not consistent with documentation that says there is > just one round function, with one argument of numeric type.
The documentation you're quoting says there is just one round function that takes *two* arguments. Which is true: regression=# \df round List of functions Schema | Name | Result data type | Argument data types | Type ------------+-------+------------------+---------------------+-------- pg_catalog | round | double precision | double precision | normal pg_catalog | round | numeric | numeric | normal pg_catalog | round | numeric | numeric, integer | normal (3 rows) I don't think there's a claim anywhere that the numeric and double precision versions of round(x) act identically. They hardly could be exactly identical anyway given the different properties of the two datatypes. regards, tom lane -- Sent via pgsql-general mailing list (pgsql-general@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-general