Re: float8 comparison failure

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: float8 comparison failure
Дата
Msg-id 29776.964797375@sss.pgh.pa.us
обсуждение исходный текст
Ответ на float8 comparison failure  (Radek Kanovsky <rk@dat.cz>)
Список pgsql-bugs
Radek Kanovsky <rk@dat.cz> writes:
> [ float8 values that appear equal are not always equal ]

This is not a bug, it's an inherent consequence of the inaccuracy of
floating-point math.  Use some other data type (numeric, maybe) if
you expect to be able to do exact equality comparisons.

            regards, tom lane

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

Предыдущее
От: Radek Kanovsky
Дата:
Сообщение: float8 comparison failure
Следующее
От: Lutz Birkhahn
Дата:
Сообщение: postgresql-7.0.2: install-sh cannot install pgaccess