Re: floating point representation - Mailing list pgsql-hackers

From Peter Eisentraut
Subject Re: floating point representation
Date
Msg-id Pine.LNX.4.30.0102161753210.1009-100000@peter.localdomain
Whole thread Raw
In response to floating point representation  (Hiroshi Inoue <Inoue@tpf.co.jp>)
Responses Re: floating point representation  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-hackers
Hiroshi Inoue writes:

> Is there a way to change the precision of floating
> point representation from clients ?

Not currently, but I image it couldn't be too hard to introduce a
parameter that changes the format string used by float*out to something
else.

The GNU C library now offers a %a (and %A) format that prints floating
point numbers in a semi-internal form that is meant to be portable.  (I
image this was done because of C99, but I'm speculating.)  It might be
useful to offer this to preserve accurate data across dumps.

-- 
Peter Eisentraut      peter_e@gmx.net       http://yi.org/peter-e/



pgsql-hackers by date:

Previous
From: Peter T Mount
Date:
Subject: Quick question about 7.1 & SQL92 Entry Level
Next
From: Bruce Momjian
Date:
Subject: Re: Open 7.1 items