Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5fZB-0002ZN-Dh for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 00:24:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5fZA-0001vI-4b for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 00:24:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5fZ9-0001oU-Md for pgsql-general@lists.postgresql.org; Thu, 05 Sep 2019 00:23:59 +0000 Received: from mail-pf1-x430.google.com ([2607:f8b0:4864:20::430]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5fZ6-0002I4-6y for pgsql-general@postgresql.org; Thu, 05 Sep 2019 00:23:58 +0000 Received: by mail-pf1-x430.google.com with SMTP id r12so516280pfh.1 for ; Wed, 04 Sep 2019 17:23:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=to:from:subject:message-id:date:user-agent:mime-version :content-language; bh=m3bcDSZJAtu/AoNEGfLsc0EON99MFmIeiPsaAa5y+kE=; b=iOiBZyNehYqFbhcoYgkJXY1m7zxSBPMqnX+m24xdr3SlSIHxeXR5FrhwCLPNVp6Wip dzZa5fXe1GPtsbiNXgP9MLsSD73JQxFcGaoSMzFLtb7GFwoGjLisMb4jlMwv2WIbk9aE mnBUp75ieFVAIuht1P6j4lhA2kEWql8vqpwm/xXX2gKik9ZsubASKPqmcU37jXqwf+nc RLQ8ZaReGCObbbP8jZAgQ4fei35oPkO60I+6oW73MXCfefj/qRgK/0tIISrOOfBhhZTF ghvR61mYaS0C0QOrKPPhrbTEYI8/7NRCN/Orh8Dzuhy4EtY3Ph8oFaKpiuo8JR49tgR/ y6Tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:to:from:subject:message-id:date:user-agent :mime-version:content-language; bh=m3bcDSZJAtu/AoNEGfLsc0EON99MFmIeiPsaAa5y+kE=; b=B8L2DrV18UV1B8XidkNaXu8RiysodHrtnYJbB5ytTfix+TNS5j3pNRKmgGMKG4SXMm k4LmHco4wQuc39WN/LopyO0/yybeqVjqxRtgYjPlHjnIYS3oluoU2Tjd0j3KlKF5D4T/ 0TY0G3BbfwtyTZJPEWqsEzyr352IEYjvPqxyaY7pN1/KNOUn73kIX6jaibBs3KSeU30/ FwjW3rr3mn4x1cx8hFub69me15ia/bdu6t1nEj/QBsgQKcf3ZDKLgF2ilok+qIqSVDgR NYTzXZyTdNlyA1I5VgeqnpvdPM4DuhWZsNqqS1m0ag0iGJmYFXGmjuIkvxw6JNxkLvjX pGLA== X-Gm-Message-State: APjAAAXfNP6J9uNB0xt4LaXeg0hypAqZk9RwPEpxuaOI9/WcPTJXMaf6 VVCEoUTP07RE6zgTLLe9vSDl8CCbHbQ= X-Google-Smtp-Source: APXvYqzLXIbakLGGQTbWeK9ls4DiVR7Pr6DfFp4FLFYKbbn6YClaM90XgqBzqz6VBlvPSlPHT79LKg== X-Received: by 2002:a65:5382:: with SMTP id x2mr697700pgq.422.1567643033315; Wed, 04 Sep 2019 17:23:53 -0700 (PDT) Received: from [10.104.134.41] ([155.100.47.1]) by smtp.gmail.com with ESMTPSA id v18sm244286pgl.87.2019.09.04.17.23.52 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Sep 2019 17:23:52 -0700 (PDT) To: "pgsql-general@postgresql.org" From: Rob Sargent Subject: floating point output Message-ID: <2e1865c7-9ef3-e27f-e323-1659a5f129fc@gmail.com> Date: Wed, 4 Sep 2019 18:23:51 -0600 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="------------70302E1AEF6A7054DAD07125" Content-Language: en-US List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk This is a multi-part message in MIME format. --------------70302E1AEF6A7054DAD07125 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit I've found the description of floating point types (here ), 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? --------------70302E1AEF6A7054DAD07125 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 8bit

I've found the description of floating point types (here), 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?


--------------70302E1AEF6A7054DAD07125--