public inbox for [email protected]  
help / color / mirror / Atom feed
From: Tom Lane <[email protected]>
To: Michael Paquier <[email protected]>
Cc: [email protected]
Cc: [email protected]
Subject: Re: Math function description issue
Date: Mon, 06 Jun 2016 23:06:25 -0400
Message-ID: <[email protected]> (raw)
In-Reply-To: <CAB7nPqSiJwS_YTyy_v5ZDKV-ywGs5wV9YrXwT=uOp1hMS-oY=A@mail.gmail.com>
References: <[email protected]>
	<CAB7nPqSiJwS_YTyy_v5ZDKV-ywGs5wV9YrXwT=uOp1hMS-oY=A@mail.gmail.com>
List-Unsubscribe: <mailto:[email protected]?body=unsub%20pgsql-docs>

Michael Paquier <[email protected]> writes:
> On Mon, Jun 6, 2016 at 2:40 PM,  <[email protected]> wrote:
>> Please, check ceil, ceiling and floor functions. Example is correct, but
>> description is wrong.

> We could make things indeed more precise. Say for ceil, we use
> "smallest *following* integer", and for floor, "largest *previous*
> integer", and we keep the mention to "not less/greater than argument"
> to show the fact that a numeric already rounded to an integer is equal
> to itself. See the patch attached.

Meh --- I'm not sure that adding previous/following really adds much
clarity.  Either with the existing wording or with yours, the statement
is correct as long as you read "smaller" as "closer to minus infinity",
a/k/a "further left on the number line".  But if you are thinking it
means "closer to zero", which is what I think the OP is thinking, this
won't do much to disabuse you of your confusion.

We had a similar complaint not long ago, so it does seem that the
wording could stand to be clarified.  But I doubt this way fixes it.
Not sure how to do better ...

			regards, tom lane


-- 
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs



view thread (8+ messages)  latest in thread

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: [email protected]
  Cc: [email protected], [email protected], [email protected]
  Subject: Re: Math function description issue
  In-Reply-To: <[email protected]>

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

This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox