double precisoin type

Поиск
Список
Период
Сортировка
От Fabrice Chapuis
Тема double precisoin type
Дата
Msg-id CAA5-nLDB7ko9LNo270=pZ-jt+OfXsxjD0k52jMg-OS4Yxe-mUw@mail.gmail.com
обсуждение исходный текст
Ответы Re: double precisoin type  (Tom Lane <tgl@sss.pgh.pa.us>)
Список 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 по дате отправления:

Предыдущее
От: Bharath Rupireddy
Дата:
Сообщение: Re: Introduce XID age and inactive timeout based replication slot invalidation
Следующее
От: Tomas Vondra
Дата:
Сообщение: Re: index prefetching