Re: Math function description issue
| От | Michael Paquier |
|---|---|
| Тема | Re: Math function description issue |
| Дата | |
| Msg-id | CAB7nPqSiJwS_YTyy_v5ZDKV-ywGs5wV9YrXwT=uOp1hMS-oY=A@mail.gmail.com обсуждение исходный текст |
| Ответ на | Math function description issue (npistud@gmail.com) |
| Ответы |
Re: Math function description issue
|
| Список | pgsql-docs |
On Mon, Jun 6, 2016 at 2:40 PM, <npistud@gmail.com> wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/9.5/static/functions-math.html > Description: > > https://www.postgresql.org/docs/9.5/static/functions-math.html > > Same issue for other versions. > Please, check ceil, ceiling and floor functions. Example is correct, but > description is wrong. > > For ceil in docs > Description: smallest integer not less than argument. > Example: ceil(-42.8) = -42 > > But -42.8 < -42 > So, description should be "Biggest integer". > > Vice versa for floor. 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. -- Michael
Вложения
В списке pgsql-docs по дате отправления: