pg.ddx.io pgsql-docs@postgresql.org mailing list archive
help / color / mirror / Atom feedRound(DP Or numeric ) returns integer
2+ messages / 2 participants
[nested] [flat]
* Round(DP Or numeric ) returns integer
@ 2019-01-31 08:55 PG Doc comments form <noreply@postgresql.org>
2019-01-31 14:50 ` Re: Round(DP Or numeric ) returns integer Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2019-01-31 08:55 UTC (permalink / raw)
To: pgsql-docs@lists.postgresql.org; +Cc: bhagyashreesalunkhe25@gmail.com
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/11/functions-math.html
Description:
1) The function round( dp or numeric ) always has return type integer not
same as our parameter is.
2) The function round( dp or numeric, s int ) returns the same type as our
parameter is not an integer type.
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: Round(DP Or numeric ) returns integer
2019-01-31 08:55 Round(DP Or numeric ) returns integer PG Doc comments form <noreply@postgresql.org>
@ 2019-01-31 14:50 ` Tom Lane <tgl@sss.pgh.pa.us>
0 siblings, 0 replies; 2+ messages in thread
From: Tom Lane @ 2019-01-31 14:50 UTC (permalink / raw)
To: bhagyashreesalunkhe25@gmail.com; +Cc: pgsql-docs@lists.postgresql.org
PG Doc comments form <noreply@postgresql.org> writes:
> 1) The function round( dp or numeric ) always has return type integer not
> same as our parameter is.
> 2) The function round( dp or numeric, s int ) returns the same type as our
> parameter is not an integer type.
Huh?
postgres=# \df round
List of functions
Schema | Name | Result data type | Argument data types | Type
------------+-------+------------------+---------------------+------
pg_catalog | round | double precision | double precision | func
pg_catalog | round | numeric | numeric | func
pg_catalog | round | numeric | numeric, integer | func
(3 rows)
The description in the docs matches reality AFAICS.
regards, tom lane
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2019-01-31 14:50 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2019-01-31 08:55 Round(DP Or numeric ) returns integer PG Doc comments form <noreply@postgresql.org>
2019-01-31 14:50 ` Tom Lane <tgl@sss.pgh.pa.us>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox