Search Postgresql Archives

Re: R: round(x) function

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



"Gaietti, Mauro \(SELEX GALILEO Guest, Italy\)" <mauro.gaietti@xxxxxxxxxxxxxxxxxxxxxxx> 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@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux