pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tom Lane <tgl@sss.pgh.pa.us>
To: Jaroslav Sivy <yarex@pobox.sk>
Cc: pgsql-bugs@postgreSQL.org
Subject: Re: Re: [BUGS] BUG #14695: Documentation is not accurate
Date: Fri, 09 Jun 2017 11:59:10 -0400
Message-ID: <31432.1497023950@sss.pgh.pa.us> (raw)
In-Reply-To: <20170609164957.F84AA9F7@pobox.sk>
References: <20170609065706.26503.29688@wrigleys.postgresql.org>
	<20170609164957.F84AA9F7@pobox.sk>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

=?utf-8?q?Jaroslav_Sivy?= <yarex@pobox.sk> writes:
> The problem is in "largest integer not greater than argument" and "smallest integer not less than argument"
> As you can see Largest integer from -42.8 is not -43, but infact its 42, because in negative numbers -42 > -43

Well, it still looks correct to me.  FWIW, you're not the first to be
confused by this.  In currently-supported releases we've rephrased it as

ceil(dp or numeric)	nearest integer greater than or equal to argument

floor(dp or numeric)	nearest integer less than or equal to argument

But 8.1 is six years out of support and its docs aren't going to be
updated any more.

			regards, tom lane


-- 
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs



view thread (5+ messages)  latest in thread

Message-ID: <31432.1497023950@sss.pgh.pa.us>
Permalink:  ../31432.1497023950@sss.pgh.pa.us/
Also on:    postgresql.org/message-id/31432.1497023950@sss.pgh.pa.us

 · 

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 from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-bugs@postgresql.org
  Cc: tgl@sss.pgh.pa.us, yarex@pobox.sk
  Subject: Re: [BUGS] BUG #14695: Documentation is not accurate
  In-Reply-To: <31432.1497023950@sss.pgh.pa.us>
  References: <20170609065706.26503.29688@wrigleys.postgresql.org> <20170609164957.F84AA9F7@pobox.sk> <31432.1497023950@sss.pgh.pa.us>

* 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