pg.ddx.io  pgsql-docs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Daniel Gustafsson <daniel@yesql.se>
To: akdmnnakdm@gmail.com, Pg Docs <pgsql-docs@lists.postgresql.org>
Subject: Re: Mistake in documentation (PG15+)
Date: Fri, 24 Mar 2023 13:38:19 +0100
Message-ID: <73EB06C8-B07E-4241-B041-CCA59C47DEF3@yesql.se> (raw)
In-Reply-To: <167965358747.3349096.16285106658125853751@wrigleys.postgresql.org>
References: <167965358747.3349096.16285106658125853751@wrigleys.postgresql.org>

> On 24 Mar 2023, at 11:26, PG Doc comments form <noreply@postgresql.org> wrote:

> But the correct range here would be from -99499 to 99499:
> 
> select 99499::NUMERIC(2, -3);

I'm not sure I see the error you indicate, numeric(2,-3) gives the range
indicated in the documentation:

postgres=# select -99499::numeric(2, -3) as neg,  99499::numeric(2, -3) as pos;
  neg   |  pos
--------+-------
 -99000 | 99000
(1 row)

--
Daniel Gustafsson






view thread (2+ messages)

Message-ID: <73EB06C8-B07E-4241-B041-CCA59C47DEF3@yesql.se>
Permalink:  ../73EB06C8-B07E-4241-B041-CCA59C47DEF3@yesql.se/
Also on:    postgresql.org/message-id/73EB06C8-B07E-4241-B041-CCA59C47DEF3@yesql.se

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-docs@postgresql.org
  Cc: daniel@yesql.se, pgsql-docs@lists.postgresql.org
  Subject: Re: Mistake in documentation (PG15+)
  In-Reply-To: <73EB06C8-B07E-4241-B041-CCA59C47DEF3@yesql.se>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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