public inbox for [email protected]
help / color / mirror / Atom feedRe: [webmaster] Documentation Error: Ceiling, Floor
6+ messages / 4 participants
[nested] [flat]
* Re: [webmaster] Documentation Error: Ceiling, Floor
@ 2016-05-03 14:38 Jonathan S. Katz <[email protected]>
2016-05-03 14:52 ` Re: [webmaster] Documentation Error: Ceiling, Floor patrick s. <[email protected]>
2016-05-03 15:26 ` Re: [webmaster] Documentation Error: Ceiling, Floor Tom Lane <[email protected]>
0 siblings, 2 replies; 6+ messages in thread
From: Jonathan S. Katz @ 2016-05-03 14:38 UTC (permalink / raw)
To: patrick s. <[email protected]>; +Cc: [email protected]; [email protected]; pgsql-docs
Hi Patrick,
> On May 3, 2016, at 5:00 AM, patrick s. <[email protected]> wrote:
>
> Dear PostgreSQL developers and webmasters
>
> It appears that the documentation of the mathematical functions "ceiling" and "floor" are wrong (inverted).
>
> result is correct and as one would expect::
> select ceiling(43.8); =>44
> select floor(43.8); =>43
>
> documentation is misleading:
> select ceiling(43.8); =>43
> select floor(43.8); =>44
>
> found in:
> http://www.postgresql.org/docs/9.1/static/functions-math.html
> http://www.postgresql.org/docs/7.4/static/functions-math.html
This should be sent to pgsql-docs (which I have CC’d)
Thanks!
Jonathan
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [webmaster] Documentation Error: Ceiling, Floor
2016-05-03 14:38 Re: [webmaster] Documentation Error: Ceiling, Floor Jonathan S. Katz <[email protected]>
@ 2016-05-03 14:52 ` patrick s. <[email protected]>
2016-05-03 15:15 ` Re: [webmaster] Documentation Error: Ceiling, Floor Jonathan S. Katz <[email protected]>
1 sibling, 1 reply; 6+ messages in thread
From: patrick s. @ 2016-05-03 14:52 UTC (permalink / raw)
To: Jonathan S. Katz <[email protected]>; +Cc: [email protected]; [email protected]; pgsql-docs
Thanks, Jonathan
Didn't see whom to contact on the PG-Pages, but wanted to help.
Cheers, P
On 03.05.2016 16:38, Jonathan S. Katz wrote:
> Hi Patrick,
>
>> On May 3, 2016, at 5:00 AM, patrick s. <[email protected]> wrote:
>>
>> Dear PostgreSQL developers and webmasters
>>
>> It appears that the documentation of the mathematical functions "ceiling" and "floor" are wrong (inverted).
>>
>> result is correct and as one would expect::
>> select ceiling(43.8); =>44
>> select floor(43.8); =>43
>>
>> documentation is misleading:
>> select ceiling(43.8); =>43
>> select floor(43.8); =>44
>>
>> found in:
>> http://www.postgresql.org/docs/9.1/static/functions-math.html
>> http://www.postgresql.org/docs/7.4/static/functions-math.html
> This should be sent to pgsql-docs (which I have CC’d)
>
> Thanks!
>
> Jonathan
>
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [webmaster] Documentation Error: Ceiling, Floor
2016-05-03 14:38 Re: [webmaster] Documentation Error: Ceiling, Floor Jonathan S. Katz <[email protected]>
2016-05-03 14:52 ` Re: [webmaster] Documentation Error: Ceiling, Floor patrick s. <[email protected]>
@ 2016-05-03 15:15 ` Jonathan S. Katz <[email protected]>
0 siblings, 0 replies; 6+ messages in thread
From: Jonathan S. Katz @ 2016-05-03 15:15 UTC (permalink / raw)
To: patrick s. <[email protected]>; +Cc: [email protected]; [email protected]; pgsql-docs
Hi Patrick,
> On May 3, 2016, at 10:52 AM, patrick s. <[email protected]> wrote:
>
> Thanks, Jonathan
>
> Didn't see whom to contact on the PG-Pages, but wanted to help.
>
> Cheers, P
Not a problem! I wanted to make sure the correct people saw it :-)
Best,
Jonathan
> On 03.05.2016 16:38, Jonathan S. Katz wrote:
>> Hi Patrick,
>>
>>> On May 3, 2016, at 5:00 AM, patrick s. <[email protected]> wrote:
>>>
>>> Dear PostgreSQL developers and webmasters
>>>
>>> It appears that the documentation of the mathematical functions "ceiling" and "floor" are wrong (inverted).
>>>
>>> result is correct and as one would expect::
>>> select ceiling(43.8); =>44
>>> select floor(43.8); =>43
>>>
>>> documentation is misleading:
>>> select ceiling(43.8); =>43
>>> select floor(43.8); =>44
>>>
>>> found in:
>>> http://www.postgresql.org/docs/9.1/static/functions-math.html
>>> http://www.postgresql.org/docs/7.4/static/functions-math.html
>> This should be sent to pgsql-docs (which I have CC’d)
>>
>> Thanks!
>>
>> Jonathan
>>
>
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [webmaster] Documentation Error: Ceiling, Floor
2016-05-03 14:38 Re: [webmaster] Documentation Error: Ceiling, Floor Jonathan S. Katz <[email protected]>
@ 2016-05-03 15:26 ` Tom Lane <[email protected]>
2016-05-03 15:36 ` Re: [webmaster] Documentation Error: Ceiling, Floor patrick s. <[email protected]>
1 sibling, 1 reply; 6+ messages in thread
From: Tom Lane @ 2016-05-03 15:26 UTC (permalink / raw)
To: Jonathan S. Katz <[email protected]>; +Cc: patrick s. <[email protected]>; pgsql-docs
[ trimming 100%-inappropriate crossposts ]
> On May 3, 2016, at 5:00 AM, patrick s. <[email protected]> wrote:
>> documentation is misleading:
>> select ceiling(43.8); =>43
>> select floor(43.8); =>44
>>
>> found in:
>> http://www.postgresql.org/docs/9.1/static/functions-math.html
>> http://www.postgresql.org/docs/7.4/static/functions-math.html
AFAICS, those examples refer to -43.8 not 43.8, and are quite correct.
regards, tom lane
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Re: [webmaster] Documentation Error: Ceiling, Floor
2016-05-03 14:38 Re: [webmaster] Documentation Error: Ceiling, Floor Jonathan S. Katz <[email protected]>
2016-05-03 15:26 ` Re: [webmaster] Documentation Error: Ceiling, Floor Tom Lane <[email protected]>
@ 2016-05-03 15:36 ` patrick s. <[email protected]>
0 siblings, 0 replies; 6+ messages in thread
From: patrick s. @ 2016-05-03 15:36 UTC (permalink / raw)
To: Tom Lane <[email protected]>; Jonathan S. Katz <[email protected]>; +Cc: pgsql-docs
Thanks, Tom.
Can confirm this. My error was that examples for "round" are using
positive values and examples of "ceiling"/"floor" are using negative
ones. Maybe misleading on a fast look.
Sorry for wasting your time, guys!
Patrick
On 03.05.2016 17:26, Tom Lane wrote:
> [ trimming 100%-inappropriate crossposts ]
>
>> On May 3, 2016, at 5:00 AM, patrick s. <[email protected]> wrote:
>>> documentation is misleading:
>>> select ceiling(43.8); =>43
>>> select floor(43.8); =>44
>>>
>>> found in:
>>> http://www.postgresql.org/docs/9.1/static/functions-math.html
>>> http://www.postgresql.org/docs/7.4/static/functions-math.html
> AFAICS, those examples refer to -43.8 not 43.8, and are quite correct.
>
> regards, tom lane
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 6+ messages in thread
* Fwd: [CORE] Documentation Error: Ceiling, Floor
@ 2016-05-03 16:14 Josh berkus <[email protected]>
0 siblings, 0 replies; 6+ messages in thread
From: Josh berkus @ 2016-05-03 16:14 UTC (permalink / raw)
To: pgsql-docs
-------- Forwarded Message --------
Subject: [CORE] Documentation Error: Ceiling, Floor
Date: Tue, 3 May 2016 11:00:10 +0200
From: patrick s. <[email protected]>
To: [email protected], [email protected]
Dear PostgreSQL developers and webmasters
It appears that the documentation of the mathematical functions
"ceiling" and "floor" are wrong (inverted).
result is correct and as one would expect::
select ceiling(43.8); =>44
select floor(43.8); =>43
documentation is misleading:
select ceiling(43.8); =>43
select floor(43.8); =>44
found in:
http://www.postgresql.org/docs/9.1/static/functions-math.html
http://www.postgresql.org/docs/7.4/static/functions-math.html
Cheers,
Patrick
--
Sent via pgsql-core mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-core
--
Sent via pgsql-docs mailing list ([email protected])
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-docs
^ permalink raw reply [nested|flat] 6+ messages in thread
end of thread, other threads:[~2016-05-03 16:14 UTC | newest]
Thread overview: 6+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2016-05-03 14:38 Re: [webmaster] Documentation Error: Ceiling, Floor Jonathan S. Katz <[email protected]>
2016-05-03 14:52 ` patrick s. <[email protected]>
2016-05-03 15:15 ` Jonathan S. Katz <[email protected]>
2016-05-03 15:26 ` Tom Lane <[email protected]>
2016-05-03 15:36 ` patrick s. <[email protected]>
2016-05-03 16:14 Fwd: [CORE] Documentation Error: Ceiling, Floor Josh berkus <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox