Re: float output precision questions - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: float output precision questions
Date
Msg-id Pine.LNX.4.44.0210301926560.2006-100000@localhost.localdomain
Whole thread Raw
In response to Re: float output precision questions  (Bruno Wolff III <bruno@wolff.to>)
Responses Re: float output precision questions  (Bruno Wolff III <bruno@wolff.to>)
List 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 by date:

Previous
From: Tom Lane
Date:
Subject: Re: move 0 behaviour
Next
From: Larry Rosenman
Date:
Subject: Re: 7.3b3 ok on unixware 71[12] here