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

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: (view raw, whole thread or download thread mbox)
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


pgsql-hackers by date

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

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