
> Maybe it makes sense that in the proposal below the parameter 
> EXTRA_DIGITS could be SIGNIFICANT_DIGITS with a default value 
> of 15 and maximum 18.
> Its more 'documentable' and maybe easy to understand in general.

Yes agree (or double_significant_digits or format_double_digits ?), 
but default to DBL_DIG and allow range between 1 and DBL_DIG + 3.
format_* could be used for all future output format tweaks.

Unfortunately %A is not portable :-(

Andreas

Thu, 31 Oct 2002 15:28:48 +0100
"Zeugswetter Andreas SB SD" <ZeugswetterA@spardat.at>
Re: float output precision questions
Zeugswetter Andreas SB SD wrote:

> Yes agree (or double_significant_digits or format_double_digits ?), 
> but default to DBL_DIG and allow range between 1 and DBL_DIG + 3.
> format_* could be used for all future output format tweaks.
> 
> Unfortunately %A is not portable :-(

What do you mean ?
It is C99, introduced in glibc 2.1.

What are the requirements for PostgreSQL ?

Pedro



Thu, 31 Oct 2002 14:48:53 +0000
"Pedro M. Ferreira" <pfrazao@ualg.pt>
Re: float output precision questions
"Pedro M. Ferreira" <pfrazao@ualg.pt> writes:
> Zeugswetter Andreas SB SD wrote:
>> Unfortunately %A is not portable :-(

> What do you mean ?

Just what he said.

> It is C99, introduced in glibc 2.1.

> What are the requirements for PostgreSQL ?

glibc does not define the universe; nor are all platforms supporting C99
yet.

			regards, tom lane

Thu, 31 Oct 2002 10:40:21 -0500
Tom Lane <tgl@sss.pgh.pa.us>
Re: float output precision questions 