Re: float output precision questions

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

Bruno Wolff III wrote:
> 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.

Having a way to get the binary storage representation for float numbers
would be good and would suffice within the same float number standard.

Thanks,
Pedro M. Ferreira

--
----------------------------------------------------------------------
Pedro Miguel Frazao Fernandes Ferreira
Universidade do Algarve
Faculdade de Ciencias e Tecnologia
Campus de Gambelas
8000-117 Faro
Portugal
Tel./Fax: (+351) 289 800950 / 289 819403
http://w3.ualg.pt/~pfrazao

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Yaroslav Dmitriev 2002-10-30 11:48:19 calculated fields are not seen in the WHERE clause
Previous Message Pedro Miguel Frazao Fernandes Ferreira 2002-10-30 10:28:42 Re: float output precision questions