From: yarex@pobox.sk
To: pgsql-bugs@postgresql.org
Subject: BUG #14695: Documentation is not accurate
Date: Fri, 09 Jun 2017 06:57:06 +0000
Message-ID: <20170609065706.26503.29688@wrigleys.postgresql.org> (raw)
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>
The following bug has been logged on the website:
Bug reference: 14695
Logged by: Jaroslav Sivy
Email address: yarex@pobox.sk
PostgreSQL version: 9.6.3
Operating system: n/a
Description:
url: https://www.postgresql.org/docs/8.1/static/functions-math.html
CEIL and FLOOR example is not accurate.
ceil(dp or numeric)
smallest integer not less than argument: ceil(-42.8) = -42
..... well, minus 42 is not smallest integer from -42.8, because -42 is
bigger number :-).
..... so correct number should be -43 in case of negative numbers
(positive are fine)
Same applies to FLOOR from negative numbers, where its opposite.
--
Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-bugs
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: yarex@pobox.sk
Subject: Re: BUG #14695: Documentation is not accurate
In-Reply-To: <20170609065706.26503.29688@wrigleys.postgresql.org>
References: <20170609065706.26503.29688@wrigleys.postgresql.org>
* 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