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

From Bruno Wolff III
Subject Re: float output precision questions
Date
Msg-id 20021030021506.GA32582@wolff.to
Whole thread Raw
In response to Re: float output precision questions  (Peter Eisentraut <peter_e@gmx.net>)
Responses Re: float output precision questions
List pgsql-hackers
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.


pgsql-hackers by date:

Previous
From: Paul Ramsey
Date:
Subject: Re: Trigger on 'create table' ?
Next
From: Bruce Momjian
Date:
Subject: Re: 7.3b3 passes on MacOSX 10.2.1