From: | Fabrice Chapuis <fabrice636861(at)gmail(dot)com> |
---|---|
To: | PostgreSQL Hackers <pgsql-hackers(at)lists(dot)postgresql(dot)org> |
Subject: | double precisoin type |
Date: | 2024-03-01 14:46:45 |
Message-ID: | CAA5-nLDB7ko9LNo270=pZ-jt+OfXsxjD0k52jMg-OS4Yxe-mUw@mail.gmail.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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 precision 8 bytes variable-precision, inexact 15 decimal digits
precision
From | Date | Subject | |
---|---|---|---|
Next Message | Tomas Vondra | 2024-03-01 14:58:38 | Re: index prefetching |
Previous Message | Bharath Rupireddy | 2024-03-01 14:32:00 | Re: Introduce XID age and inactive timeout based replication slot invalidation |