Re: Precision when substracting two values with SQL

Поиск
Список
Период
Сортировка
От Tim Ellis
Тема Re: Precision when substracting two values with SQL
Дата
Msg-id 20020812132407.41c1b314.Tim.Ellis@gamet.com
обсуждение исходный текст
Ответ на Precision when substracting two values with SQL  (Juancho <squid@maxiconsumo.com>)
Ответы Re: Precision when substracting two values with SQL
Список pgsql-admin
> ciudadela=# select 0.2-0.2;
>         0
> ciudadela=# select 0.2-0.21;
>  -0.00999999999999998
> ciudadela=# select 0.21-0.22;
>     -0.01

I also get this on my Postgres 7.2.1, both Linux and Solaris.

--
Tim Ellis
Senior Database Architect
Gamet, Inc.

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

Предыдущее
От: Juancho
Дата:
Сообщение: Precision when substracting two values with SQL
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: Precision when substracting two values with SQL