Re: float output precision questions

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Bruno Wolff III <bruno(at)wolff(dot)to>
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 18:27:57
Message-ID: Pine.LNX.4.44.0210301926560.2006-100000@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Bruno Wolff III writes:

> 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.

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

--
Peter Eisentraut peter_e(at)gmx(dot)net

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2002-10-30 18:32:12 Re: move 0 behaviour
Previous Message Larry Rosenman 2002-10-30 18:23:06 Re: 7.3b3 ok on unixware 71[12] here