Re: numeric and float converts to int differently?

Поиск
Список
Период
Сортировка
От Bruno Wolff III
Тема Re: numeric and float converts to int differently?
Дата
Msg-id 20031028203119.GB14260@wolff.to
обсуждение исходный текст
Ответ на Re: numeric and float converts to int differently?  (SZUCS Gábor <surrano@mailbox.hu>)
Список pgsql-sql
On Tue, Oct 28, 2003 at 21:16:53 +0100, SZUCS Gábor <surrano@mailbox.hu> wrote:
> 
> As Tom pointed out, it isn't a floating point failure -- it is how rounding
> float is implemented. I assume anything with less than 15 digits can be
> exactly represented as float.

No. It has to be a dyadic number. For example .3 will not be represented
exactly by a float.


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

Предыдущее
От: SZUCS Gábor
Дата:
Сообщение: Re: numeric and float converts to int differently?
Следующее
От: Christopher Browne
Дата:
Сообщение: Re: numeric and float converts to int differently?