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 1i5jAT-0004vz-AJ for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 04:14:45 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1i5jAQ-00052z-VF for pgsql-general@arkaria.postgresql.org; Thu, 05 Sep 2019 04:14:42 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1i5jAP-00052G-Aw for pgsql-general@lists.postgresql.org; Thu, 05 Sep 2019 04:14:42 +0000 Received: from out2-smtp.messagingengine.com ([66.111.4.26]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.92) (envelope-from ) id 1i5jAK-0007gC-2f for pgsql-general@postgresql.org; Thu, 05 Sep 2019 04:14:40 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id B9D3A22293; Thu, 5 Sep 2019 00:14:34 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute6.internal (MEProxy); Thu, 05 Sep 2019 00:14:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm3; bh=M 3DbuR8zGRdrsMi9Ie+CG7/yBH1zSbXzs8qLW6pvY7M=; b=r1dAJarfWrkww11MA Qtvp9aehNk5VlMymJst9bRe91mRc7Z+KbsN9NXfk1fuellurR8mgyFkPo3xBw3mK QqiYNYM4JPx7wodS2LTHMn8RyMvfXFgnEPbnA73Wvf/XSWB+Vi5Ol8ljr4B8yibW 6dBXQ08y8b26j+5LK2fqXs2qrNBiYfgdZt8vVrG3tqDm+slRAGc0LgS4a9et3dsH eYQk+dC7ox4eAd5/4xtEsbZX4lP+C9k9v6/XLmc2/Gw5l/DFtURaPKV90ePb+VL8 17F6H8I4VJAAwsSUjH/F04w+sfn8+ArutJXXawGn4qE70xpTuMqwA6HdwgMdjpEK vb/zQ== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm3; bh=M3DbuR8zGRdrsMi9Ie+CG7/yBH1zSbXzs8qLW6pvY 7M=; b=PcZbvpDo2GYnnGlbRpdCNIu8VFjWsuOM9ezy5ROB6yyD2LMr08ULvQRVg Y0HEMDMXl4LD+EtJNRqzZ+gstXGUvZceeYMmjXezO9WpU+MuI4OXrMaVrPVdM0tZ nAtAuj1fVBQdkKmafnX7CTtjk/iXTt+6lzkgbNJuqYgOuRYJdToTJNKlQq2naeZ+ n8qwaIOMY9dwrAYGObGOEdbwqkS/KlcQtOqYfX4kDx8UY6UGuAX3BijGcR5KQ6fX TzWYuKjlQXzBeMTv5qI69d692nFRLgFI6hUazZxXFz2drOtja2RP8pSZc2LqSqes sUbA/NtkUVoC+5r3XGjxMMQNNK6nQ== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduvddrudejiedgjeelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmne cujfgurhepuffvfhfhkffffgggjggtgfesthekredttdefjeenucfhrhhomheptegurhhi rghnucfmlhgrvhgvrhcuoegrughrihgrnhdrkhhlrghvvghrsegrkhhlrghvvghrrdgtoh hmqeenucffohhmrghinhepphhoshhtghhrvghsqhhlrdhorhhgnecukfhppeejuddrvddu vddrudehtddrvddtvdenucfrrghrrghmpehmrghilhhfrhhomheprggurhhirghnrdhklh grvhgvrhesrghklhgrvhgvrhdrtghomhenucevlhhushhtvghrufhiiigvpedt X-ME-Proxy: Received: from [192.168.1.4] (unknown [71.212.150.202]) by mail.messagingengine.com (Postfix) with ESMTPA id D832F80059; Thu, 5 Sep 2019 00:14:33 -0400 (EDT) Subject: Re: floating point output To: Rob Sargent , "pgsql-general@postgresql.org" References: <2e1865c7-9ef3-e27f-e323-1659a5f129fc@gmail.com> From: Adrian Klaver Message-ID: <59e104ff-bb89-25d4-2c50-9e15b4655980@aklaver.com> Date: Wed, 4 Sep 2019 21:14:32 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.2 MIME-Version: 1.0 In-Reply-To: <2e1865c7-9ef3-e27f-e323-1659a5f129fc@gmail.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 9/4/19 5:23 PM, Rob Sargent wrote: > 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? Some examples would help explain your concerns. Bottom line, if you want precision use numeric. > > -- Adrian Klaver adrian.klaver@aklaver.com