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 1i5rrt-00033B-EO for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 13:32:09 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5rrs-0003xM-9G for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 13:32:08 +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 1i5rrr-0003Sk-MK for pgsql-general@lists.postgresql.org; Thu, 05 Sep 2019 13:32:07 +0000 Received: from mail-pg1-x52e.google.com ([2607:f8b0:4864:20::52e]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5rro-0000vc-VZ for pgsql-general@postgresql.org; Thu, 05 Sep 2019 13:32:07 +0000 Received: by mail-pg1-x52e.google.com with SMTP id i18so1433272pgl.11 for ; Thu, 05 Sep 2019 06:32:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ZS9axow6HSZhyao5fmNe7IkDjkwCFppNk9cldFN9PyY=; b=JbWAyLJo0QDWq62WA527G2rvzO7jW08i4ujyVUbbUI1oEvczjImJWmLWvvIeOzjfNn gbqLP8PUawSinM/1a5Y4VtbF0O8GHXJk71o9X4BZI1Xq6+HLolQB/9chS4mpPXCuQjB/ 6Ge+xgCD2AZssOeQMsC/PEpChozZYmnB4Bc7NuSmUC4ekTIWM5vhP9xg/Jr5Dd3D+kcf bQJk4L9glYnSfikly2rd5tnlAKHpSz60kQY6q6QRk5zyzce8BE1nJMrmykZsaNUz+bND PjURZwP+kbv4EKpgWvbaDfLaocFM9fnMc1Tv20rTBvDYjhHWWEwTZmsLaplkKcL1eDWf i25w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=ZS9axow6HSZhyao5fmNe7IkDjkwCFppNk9cldFN9PyY=; b=KZlh1uBhUYGecg+JgoTqoT/GNpkZAx1jo5CPrJpgDhmDNKrvjLkc8bmSJHGutUDcPa 7rBZTK6CvA/lkozZfvBJCpcza17mlCYSkHg/vPO/sGetJRy3zvtxR3VUWhgnhuyBUgnA L7+GESuC5rUJPa50IzvywWfzLrkXbKmsmoBniZkIKH1C6yDMZ9HFpa+AoKsnoeUB8n5Z yY8CFMkO0Nt0hjpHBsAHOx/YLfbQl12YhKE6ru760+zbj8UU9TxABTS1J5wuuF6lz/Bj 7aV5ui+6wi+rCj2KXXXqi+Ebu6dICmbJ0Kvp0zCFXTWdZiyoR5WtUHbtsNIRaw+KR5dN LBuw== X-Gm-Message-State: APjAAAXAJ6aTh7kkjTQF4fIMy231IzvdBSWXO3tlpwLEJKNpp4vAIXHG aRnzmBG8uPxeTTzun5NwdURT21BqcvU= X-Google-Smtp-Source: APXvYqyK5RIliqFJqK+M9hcxf7NkHfEh9FQ0EAAzQwzcE07oemxWIY9pYkte0wmwPPOgVwZs7pkYGA== X-Received: by 2002:a62:3083:: with SMTP id w125mr3883694pfw.102.1567690322298; Thu, 05 Sep 2019 06:32:02 -0700 (PDT) Received: from [192.168.1.70] (d50-92-138-209.bchsia.telus.net. [50.92.138.209]) by smtp.gmail.com with ESMTPSA id q71sm2293466pjb.26.2019.09.05.06.32.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 06:32:01 -0700 (PDT) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (1.0) Subject: Re: floating point output From: Rob Sargent X-Mailer: iPhone Mail (16G77) In-Reply-To: <59e104ff-bb89-25d4-2c50-9e15b4655980@aklaver.com> Date: Thu, 5 Sep 2019 06:32:00 -0700 Cc: "pgsql-general@postgresql.org" Content-Transfer-Encoding: quoted-printable Message-Id: References: <2e1865c7-9ef3-e27f-e323-1659a5f129fc@gmail.com> <59e104ff-bb89-25d4-2c50-9e15b4655980@aklaver.com> To: Adrian Klaver List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk > On Sep 4, 2019, at 9:14 PM, Adrian Klaver wrot= e: >=20 >> On 9/4/19 5:23 PM, Rob Sargent wrote: >> I've found the description of floating point types (here ), but I'm looking f= or the rationale of the output format, particularly with respect to total di= gits presented (variable in a single select's output) and the dropping of a t= railing zero (to some implying a loss of precision). Is the code my only gu= ide here? >=20 > Some examples would help explain your concerns. >=20 > Bottom line, if you want precision use numeric. >=20 >=20 >=20 When at my desk I=E2=80=99ll give example. Actual precision is not the issue= . Purely cosmetics.=20=