pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
Wrong example
3+ messages / 3 participants
[nested] [flat]

* Wrong example
@ 2018-04-27 04:55 PG Doc comments form <noreply@postgresql.org>
  2018-04-27 13:31 ` Re: Wrong example Bruce Momjian <bruce@momjian.us>
  0 siblings, 1 reply; 3+ messages in thread

From: PG Doc comments form @ 2018-04-27 04:55 UTC (permalink / raw)
  To: pgsql-docs@lists.postgresql.org; +Cc: edigitalb@gmail.com

The following documentation comment has been logged on the website:

Page: https://www.postgresql.org/docs/7.1/static/functions-math.html
Description:

The last row of table Table 4-4. Mathematical Functions seems to be wrong at
example column, current value

trunc(numeric, s integer)	numeric	truncate to s decimal
places	round(42.4382, 2)	42.43

Possible solution

trunc(numeric, s integer)	numeric	truncate to s decimal
places	trunc(42.4382, 2)	42.43


^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Wrong example
  2018-04-27 04:55 Wrong example PG Doc comments form <noreply@postgresql.org>
@ 2018-04-27 13:31 ` Bruce Momjian <bruce@momjian.us>
  2018-04-27 13:32   ` Re: Wrong example Elvis de Freitas <edigitalb@gmail.com>
  0 siblings, 1 reply; 3+ messages in thread

From: Bruce Momjian @ 2018-04-27 13:31 UTC (permalink / raw)
  To: edigitalb@gmail.com; pgsql-docs@lists.postgresql.org

On Fri, Apr 27, 2018 at 04:55:03AM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/7.1/static/functions-math.html
> Description:
> 
> The last row of table Table 4-4. Mathematical Functions seems to be wrong at
> example column, current value
> 
> trunc(numeric, s integer)	numeric	truncate to s decimal
> places	round(42.4382, 2)	42.43
> 
> Possible solution
> 
> trunc(numeric, s integer)	numeric	truncate to s decimal
> places	trunc(42.4382, 2)	42.43

Uh, Postgres 7.1 is _decades_ old and will not be fixed.  I suggest you
look at the Postgres 10 docs.

-- 
  Bruce Momjian  <bruce@momjian.us>        http://momjian.us
  EnterpriseDB                             http://enterprisedb.com

+ As you are, so once was I.  As I am, so you will be. +
+                      Ancient Roman grave inscription +




^ permalink  raw  reply  [nested|flat] 3+ messages in thread

* Re: Wrong example
  2018-04-27 04:55 Wrong example PG Doc comments form <noreply@postgresql.org>
  2018-04-27 13:31 ` Re: Wrong example Bruce Momjian <bruce@momjian.us>
@ 2018-04-27 13:32   ` Elvis de Freitas <edigitalb@gmail.com>
  0 siblings, 0 replies; 3+ messages in thread

From: Elvis de Freitas @ 2018-04-27 13:32 UTC (permalink / raw)
  To: Bruce Momjian <bruce@momjian.us>; +Cc: pgsql-docs@lists.postgresql.org

Ok, I'll take a look.

On Fri, Apr 27, 2018, 10:31 Bruce Momjian <bruce@momjian.us> wrote:

> On Fri, Apr 27, 2018 at 04:55:03AM +0000, PG Doc comments form wrote:
> > The following documentation comment has been logged on the website:
> >
> > Page: https://www.postgresql.org/docs/7.1/static/functions-math.html
> > Description:
> >
> > The last row of table Table 4-4. Mathematical Functions seems to be
> wrong at
> > example column, current value
> >
> > trunc(numeric, s integer)     numeric truncate to s decimal
> > places        round(42.4382, 2)       42.43
> >
> > Possible solution
> >
> > trunc(numeric, s integer)     numeric truncate to s decimal
> > places        trunc(42.4382, 2)       42.43
>
> Uh, Postgres 7.1 is _decades_ old and will not be fixed.  I suggest you
> look at the Postgres 10 docs.
>
> --
>   Bruce Momjian  <bruce@momjian.us>        http://momjian.us
>   EnterpriseDB                             http://enterprisedb.com
>
> + As you are, so once was I.  As I am, so you will be. +
> +                      Ancient Roman grave inscription +
>

^ permalink  raw  reply  [nested|flat] 3+ messages in thread


end of thread, other threads:[~2018-04-27 13:32 UTC | newest]

Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-04-27 04:55 Wrong example PG Doc comments form <noreply@postgresql.org>
2018-04-27 13:31 ` Bruce Momjian <bruce@momjian.us>
2018-04-27 13:32   ` Elvis de Freitas <edigitalb@gmail.com>

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