BUG #1577: round(dp) function does not round to nearest integer properly

Поиск
Список
Период
Сортировка
От Roman Schayuk
Тема BUG #1577: round(dp) function does not round to nearest integer properly
Дата
Msg-id 20050404140444.B78DBF0B58@svr2.postgresql.org
обсуждение исходный текст
Ответы Re: BUG #1577: round(dp) function does not round to nearest integer properly  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
The following bug has been logged online:

Bug reference:      1577
Logged by:          Roman Schayuk
Email address:      rschayuk@rogers.com
PostgreSQL version: 7.2.2
Operating system:   RedHat Linux 8.0 x86
Description:        round(dp) function does not round to nearest integer
properly
Details:

SQL command:
gap=> select round(42.5);
 round
-------
    42
(1 row)
Result has to be 43

In contrast round(numeric, int) function works properly:
gap=> select round(42.5,0);
 round
-------
    43
(1 row)

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

Предыдущее
От: Enrico Weigelt
Дата:
Сообщение: Re: float conversion / presentation problem ?
Следующее
От: "David Elliott"
Дата:
Сообщение: BUG #1580: pg_dumpall aborts when cwd is unreadable