Re: Re: [BUGS] BUG #14695: Documentation is not accurate

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Jaroslav Sivy <yarex(at)pobox(dot)sk>
Cc: pgsql-bugs(at)postgreSQL(dot)org
Subject: Re: Re: [BUGS] BUG #14695: Documentation is not accurate
Date: 2017-06-09 15:59:10
Message-ID: 31432.1497023950@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

=?utf-8?q?Jaroslav_Sivy?= <yarex(at)pobox(dot)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

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message konst583 2017-06-09 16:01:09 BUG #14699: Statement trigger and logical replication
Previous Message rodolphe 2017-06-09 15:13:51 BUG #14698: Little typo in the documentation