Re: float output precision questions

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: float output precision questions
Дата
Msg-id 20021029161452.K16452-100000@megazone23.bigpanda.com
обсуждение исходный текст
Ответ на Re: float output precision questions  (Peter Eisentraut <peter_e@gmx.net>)
Список pgsql-hackers
On Tue, 29 Oct 2002, Peter Eisentraut wrote:

> Pedro Miguel Frazao Fernandes Ferreira writes:
>
> > Is there a way to set query output precision to maximum precision ?
> > For the type of application I mentioned this is crucial. People want to
> > get the 'same' numbers, from querys or dumps, as they inserted them.

How do you define maximum precision and "same"?  With simple test programs
in C, using two digits more than DBL_DIG for printf specifier, it's easy
for me to find numbers that "change" decimal string representation in the
decimal representation -> double -> decimal representation conversion(*).
The final double you get from the second conversion should be the same as
the first, but is that what you need or do you need a stronger guarantee
than that?




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

Предыдущее
От: Peter Bierman
Дата:
Сообщение: 7.3b3 passes on MacOSX 10.2.1
Следующее
От: Paul Ramsey
Дата:
Сообщение: Re: Trigger on 'create table' ?