Rounding strategy of round function

Поиск
Список
Период
Сортировка
От Rudolph Froger
Тема Rounding strategy of round function
Дата
Msg-id ce181e29-2bb2-5f98-b405-351bea1885af@dreamsolution.nl
обсуждение исходный текст
Список pgsql-docs
The 'round' mathematical function doesn't document which rounding
strategy it uses. 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 is the function seems to round to nearest
with ties (a 5) going away from zero (sometimes referred to as "round
half up). 6.5 -> 7.0 and -6.5 -> -7.0.

https://www.postgresql.org/docs/current/functions-math.html

Kind regards, Rudolph


Вложения

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

Предыдущее
От: Michael Paquier
Дата:
Сообщение: Re: TLS acronym
Следующее
От: Stephen Frost
Дата:
Сообщение: Re: TLS acronym