double precisoin type - Mailing list pgsql-hackers

From Fabrice Chapuis
Subject double precisoin type
Date
Msg-id CAA5-nLDB7ko9LNo270=pZ-jt+OfXsxjD0k52jMg-OS4Yxe-mUw@mail.gmail.com
Whole thread Raw
Responses Re: double precisoin type
List pgsql-hackers
Hello,

postgres [1264904]=# select 123456789.123456789123456::double precision;
┌────────────────────┐
│       float8       │
├────────────────────┤
│ 123456789.12345679 │
└────────────────────┘
(1 row)

I do not understand why this number is truncated at 123456789.12345679 that is 17 digits and not 15 digits

Any idea

Fabrice

Documentation says:
double precision8 bytesvariable-precision, inexact15 decimal digits precision

pgsql-hackers by date:

Previous
From: Bharath Rupireddy
Date:
Subject: Re: Introduce XID age and inactive timeout based replication slot invalidation
Next
From: Tomas Vondra
Date:
Subject: Re: index prefetching