Re: double precisoin type

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: double precisoin type
Дата
Msg-id 2873832.1709309576@sss.pgh.pa.us
обсуждение исходный текст
Ответ на double precisoin type  (Fabrice Chapuis <fabrice636861@gmail.com>)
Список pgsql-hackers
Fabrice Chapuis <fabrice636861@gmail.com> writes:
> Documentation says:
> double precision 8 bytes variable-precision, inexact 15 decimal digits
> precision

The documentation is stating the minimum number of decimal digits
that will be accurately reproduced.  You got 16 reproduced correctly
in this example, but you were lucky.

float8out has a different rule, which is to emit enough digits to
describe the actually-stored binary value unambiguously, so that
dump and reload will not change the stored value.

            regards, tom lane



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alexander Korotkov
Дата:
Сообщение: Re: POC, WIP: OR-clause support for indexes
Следующее
От: "Tristan Partin"
Дата:
Сообщение: Re: make BuiltinTrancheNames less ugly