public inbox for [email protected]
help / color / mirror / Atom feeddecimal digits precision for real and double precision types
2+ messages / 2 participants
[nested] [flat]
* decimal digits precision for real and double precision types
@ 2018-07-17 19:15 PG Doc comments form <[email protected]>
2018-08-07 22:54 ` Re: decimal digits precision for real and double precision types Bruce Momjian <[email protected]>
0 siblings, 1 reply; 2+ messages in thread
From: PG Doc comments form @ 2018-07-17 19:15 UTC (permalink / raw)
To: [email protected]; +Cc: [email protected]
The following documentation comment has been logged on the website:
Page: https://www.postgresql.org/docs/10/static/datatype-numeric.html
Description:
In table 8.2 for numeric types, when the documentation states "6 decimal
digits precision" for the real type, we are talking about 6 digits after the
decimal point or 6 digits in total (before and after)?
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: decimal digits precision for real and double precision types
2018-07-17 19:15 decimal digits precision for real and double precision types PG Doc comments form <[email protected]>
@ 2018-08-07 22:54 ` Bruce Momjian <[email protected]>
0 siblings, 0 replies; 2+ messages in thread
From: Bruce Momjian @ 2018-08-07 22:54 UTC (permalink / raw)
To: [email protected]; [email protected]
On Tue, Jul 17, 2018 at 07:15:41PM +0000, PG Doc comments form wrote:
> The following documentation comment has been logged on the website:
>
> Page: https://www.postgresql.org/docs/10/static/datatype-numeric.html
> Description:
>
> In table 8.2 for numeric types, when the documentation states "6 decimal
> digits precision" for the real type, we are talking about 6 digits after the
> decimal point or 6 digits in total (before and after)?
Well the number is stored as a mantissa and exponent, so it is 6
mantissa digits plus an exponent from 1E-37 to 1E+37.
--
Bruce Momjian <[email protected]> http://momjian.us
EnterpriseDB http://enterprisedb.com
+ As you are, so once was I. As I am, so you will be. +
+ Ancient Roman grave inscription +
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2018-08-07 22:54 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2018-07-17 19:15 decimal digits precision for real and double precision types PG Doc comments form <[email protected]>
2018-08-07 22:54 ` Bruce Momjian <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox