Re: Crazy Multiplication Issue

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Crazy Multiplication Issue
Дата
Msg-id 7008.1112487210@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Crazy Multiplication Issue  ("Dave Horn" <selurevad@yahoo.com>)
Список pgsql-general
"Dave Horn" <selurevad@yahoo.com> writes:
> If I perform
> select col1 * col2, 213.1086 * .833 from tableA
> I get the following values
> 177.519464 and 177.583396

Works for me ... you *sure* it hasn't got something to do with the
datatypes you're using?  Specifically, float4 is only good to about
six digits, so the bogus result is unsurprising if any of the values
involved are float4.

            regards, tom lane

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

Предыдущее
От: "Sean Davis"
Дата:
Сообщение: Re: getting information of tables and indexes
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: PostgreSQL and .NET