Re: floating point output

Поиск
Список
Период
Сортировка
От Adrian Klaver
Тема Re: floating point output
Дата
Msg-id 59e104ff-bb89-25d4-2c50-9e15b4655980@aklaver.com
обсуждение исходный текст
Ответ на floating point output  (Rob Sargent <robjsargent@gmail.com>)
Ответы Re: floating point output
Re: floating point output
Список pgsql-general
On 9/4/19 5:23 PM, Rob Sargent wrote:
> I've found the description of floating point types (here 
> <https://www.postgresql.org/docs/10/datatype-numeric.html#DATATYPE-FLOAT>), 
> but I'm looking for the rationale of the output format, particularly 
> with respect to total digits presented (variable in a single select's 
> output) and the dropping of a trailing zero (to some implying a loss of 
> precision).  Is the code my only guide here?

Some examples would help explain your concerns.

Bottom line, if you want precision use numeric.

> 
> 


-- 
Adrian Klaver
adrian.klaver@aklaver.com



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

Предыдущее
От: Rob Sargent
Дата:
Сообщение: floating point output
Следующее
От: Luca Ferrari
Дата:
Сообщение: Re: PG11.2 - wal_level =minimal max_wal_senders = 0