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
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера