Re: floating point output

From: Rob Sargent <robjsargent(at)gmail(dot)com>
To: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
Cc: "pgsql-general(at)postgresql(dot)org" <pgsql-general(at)postgresql(dot)org>
Subject: Re: floating point output
Date: 2019-09-05 13:32:00
Message-ID: EB5A6A4C-F58A-4055-82F4-1E76CD675B4C@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

> On Sep 4, 2019, at 9:14 PM, Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com> wrote:
>
>> 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.
>
>
>
When at my desk I’ll give example. Actual precision is not the issue. Purely cosmetics.

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Tom Lane 2019-09-05 13:53:51 Re: Rebuild pg_toast from scratch?
Previous Message Moreno Andreo 2019-09-05 12:12:27 Rebuild pg_toast from scratch?