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

=?UTF-8?Q?J=c3=bcrgen_Purtz?= <[email protected]> writes:
> The standard says:
> "<ceiling function> computes the least integer greater than or equal to 
> its argument."

Hmm, you're looking at the SQL standard I guess.  The existing wording
in our docs seems to be taken from the C/POSIX standard, which says
"[ceil(x)] shall compute the smallest integral value not less than x".

> a) In my opinion this wording is easier to understand because it avoids 
> the negation via "not less".

That's a fair point.

The other difference is least/greatest versus smallest/largest.  I'm not
sure if using least/greatest would help the people who misunderstand
"smallest" as "closest to zero".  They might; but being less-common words,
they might also confuse people whose native language isn't English.
Anyone have an opinion about which to use?

> b) To dispel the ambiguities concerning what is greater or lesser (with 
> negative numbers) we may add a second example with +42.8 and an 
> additional comment - something like: "Please consider the situation with 
> negative numbers: -42 is greater than -43".

I'm not terribly excited about that, and even if I were, there doesn't
seem to be a good way to shoehorn multiple examples into one entry in
these tables.

			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]
  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