Re: float output precision questions

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: float output precision questions
Дата
Msg-id Pine.LNX.4.44.0210301926560.2006-100000@localhost.localdomain
обсуждение исходный текст
Ответ на Re: float output precision questions  (Bruno Wolff III <bruno@wolff.to>)
Ответы Re: float output precision questions  (Bruno Wolff III <bruno@wolff.to>)
Список pgsql-hackers
Bruno Wolff III writes:

> On Tue, Oct 29, 2002 at 23:19:05 +0100,
>   Peter Eisentraut <peter_e@gmx.net> wrote:
> >
> > There isn't a way right now, but it's planned to be able to dump
> > floating-point numbers in some binary form (like printf("%A")) to be able
> > to restore them exactly.  Not sure how that would satisfy the needs of
> > client interfaces, though.
>
> Why not print it as a floating binary number instead of a floating decimal
> number? I would think that would give you better portability than a system
> specific binary representation.

The printf("%A") output is not system-specific.

-- 
Peter Eisentraut   peter_e@gmx.net



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: move 0 behaviour
Следующее
От: Larry Rosenman
Дата:
Сообщение: Re: 7.3b3 ok on unixware 71[12] here