From: Alvaro Herrera Date: Tue, 2 Jul 2013 16:21:16 +0000 (-0400) Subject: Mention extra_float_digits in floating point docs X-Git-Tag: REL9_0_14~34 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1a1e79751d5c6bd1a1d63ffbd993cd921d3e3974;p=postgresql Mention extra_float_digits in floating point docs Make it easier for readers of the FP docs to find out about possibly truncated values. Per complaint from Tom Duffey in message F0E0F874-C86F-48D1-AA2A-0C5365BF5118@trillitech.com Author: Albe Laurenz Reviewed by: Abhijit Menon-Sen --- diff --git a/doc/src/sgml/config.sgml b/doc/src/sgml/config.sgml index ab40ea7612..088473a828 100644 --- a/doc/src/sgml/config.sgml +++ b/doc/src/sgml/config.sgml @@ -4739,6 +4739,7 @@ SET XML OPTION { DOCUMENT | CONTENT }; partially-significant digits; this is especially useful for dumping float data that needs to be restored exactly. Or it can be set negative to suppress unwanted digits. + See also . diff --git a/doc/src/sgml/datatype.sgml b/doc/src/sgml/datatype.sgml index 0e07cc35ea..f15a47a2f4 100644 --- a/doc/src/sgml/datatype.sgml +++ b/doc/src/sgml/datatype.sgml @@ -663,6 +663,17 @@ NUMERIC from zero will cause an underflow error. + + + The setting controls the + number of extra significant digits included when a floating point + value is converted to text for output. With the default value of + 0, the output is the same on every platform + supported by PostgreSQL. Increasing it will produce output that + more accurately represents the stored value, but may be unportable. + + + not a number double precision