Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-hackers by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group