Re: Rounding strategy

Поиск
Список
Период
Сортировка
От Laurenz Albe
Тема Re: Rounding strategy
Дата
Msg-id 40dea1e0254dc00213f0dd10afa5e668abf0d020.camel@cybertec.at
обсуждение исходный текст
Ответ на Rounding strategy  (PG Doc comments form <noreply@postgresql.org>)
Ответы Re: Rounding strategy  (Laurenz Albe <laurenz.albe@cybertec.at>)
Список pgsql-docs
On Mon, 2021-04-19 at 08:00 +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
> 
> Page: https://www.postgresql.org/docs/13/functions-math.html
> Description:
> 
> The 'round' mathematical function documentation doesn't specify its rounding
> strategy. If this would be documented then users can rely on its rounding
> behavior. For double precision the rounding probably depends on your
> platform. For numeric the function seems to round to nearest with ties going
> away from zero (sometimes referred to as "round half up). 6.5 -> 7.0 and
> -6.5 -> -7.0.

+1

Yours,
Laurenz Albe




В списке pgsql-docs по дате отправления:

Предыдущее
От: PG Doc comments form
Дата:
Сообщение: Rounding strategy
Следующее
От: PG Doc comments form
Дата:
Сообщение: regarding stored procedure