Re: The 85/0.0085 mistery ?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: The 85/0.0085 mistery ?
Дата
Msg-id 25365.970844338@sss.pgh.pa.us
обсуждение исходный текст
Ответ на RE: The 85/0.0085 mistery ?  ("Frederick W. Reimer" <fwr@ga.prestige.net>)
Список pgsql-hackers
"Frederick W. Reimer" <fwr@ga.prestige.net> writes:
> In general, it's recommended you don't check for exact equivalence when
> doing calculations on real numbers and instead check for "almost exactness."

Or use datatype NUMERIC, which behaves in a more intuitive way (at least
for people who are accustomed to thinking in decimal).  But yes, exact
equality checks on float values are usually foolish.
        regards, tom lane


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

Предыдущее
От: Jean-Christophe Pazzaglia
Дата:
Сообщение: Re: The 85/0.0085 mistery ?
Следующее
От: Hannu Krosing
Дата:
Сообщение: Re: The 85/0.0085 mistery ?