Re: float output precision questions - Mailing list pgsql-hackers

From Zeugswetter Andreas SB SD
Subject Re: float output precision questions
Date
Msg-id 46C15C39FEB2C44BA555E356FBCD6FA4961EDD@m0114.s-mxs.net
Whole thread Raw
In response to float output precision questions  (Pedro Miguel Frazao Fernandes Ferreira <pfrazao@ualg.pt>)
List pgsql-hackers
> 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


pgsql-hackers by date:

Previous
From: "Pedro M. Ferreira"
Date:
Subject: Re: float output precision questions
Next
From: Bruno Wolff III
Date:
Subject: setuid for defaults, constraints and triggers (Was: What user to [sic] defaults execute as?)