Re: float8 strtod weirdness

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: float8 strtod weirdness
Дата
Msg-id 13542.1231340208@sss.pgh.pa.us
обсуждение исходный текст
Ответ на float8 strtod weirdness  ("Nikhil Sontakke" <nikhil.sontakke@enterprisedb.com>)
Ответы Re: float8 strtod weirdness  (Sam Mason <sam@samason.me.uk>)
Список pgsql-hackers
"Nikhil Sontakke" <nikhil.sontakke@enterprisedb.com> writes:
> Consider the following with latest CVS sources:

> postgres=# create table temp(val float4);
> CREATE TABLE
> postgres=# insert into temp values (415.1);
> INSERT 0 1
> postgres=# select * from temp where val = 415.1;

Anybody who works with float arithmetic can tell you that exact equality
tests are usually a bad idea.
        regards, tom lane


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: float8 strtod weirdness
Следующее
От: Kenneth Marshall
Дата:
Сообщение: Re: float8 strtod weirdness