Re: float output precision questions

From: Bruno Wolff III <bruno(at)wolff(dot)to>
To: Peter Eisentraut <peter_e(at)gmx(dot)net>
Cc: Pedro Miguel Frazao Fernandes Ferreira <pfrazao(at)ualg(dot)pt>, pgsql-hackers(at)postgresql(dot)org
Subject: Re: float output precision questions
Date: 2002-10-30 02:15:06
Message-ID: 20021030021506.GA32582@wolff.to
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Tue, Oct 29, 2002 at 23:19:05 +0100,
Peter Eisentraut <peter_e(at)gmx(dot)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.

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Bruce Momjian 2002-10-30 02:19:15 Re: 7.3b3 passes on MacOSX 10.2.1
Previous Message Paul Ramsey 2002-10-30 00:56:31 Re: Trigger on 'create table' ?