Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1b4tDn-0006rK-Jo for pgsql-bugs@arkaria.postgresql.org; Mon, 23 May 2016 17:00:51 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1b4tDn-0000yD-6S for pgsql-bugs@arkaria.postgresql.org; Mon, 23 May 2016 17:00:51 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b4tD9-0000EY-OI for pgsql-bugs@postgresql.org; Mon, 23 May 2016 17:00:11 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1b4tD7-0000w9-Dq for pgsql-bugs@postgresql.org; Mon, 23 May 2016 17:00:10 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.14.4/8.14.4) with ESMTP id u4NH08e1031967; Mon, 23 May 2016 13:00:08 -0400 From: Tom Lane To: Charles cc: pgsql-bugs@postgresql.org Subject: Re: BUG #14138: Inconsistent rounding behavior in float4 coercion In-reply-to: References: <20160515183714.1449.53603@wrigleys.postgresql.org> <7438.1463342412@sss.pgh.pa.us> Comments: In-reply-to Charles message dated "Sun, 22 May 2016 12:18:02 -0700" Date: Mon, 23 May 2016 13:00:08 -0400 Message-ID: <31966.1464022808@sss.pgh.pa.us> X-Pg-Spam-Score: -3.3 (---) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org Charles writes: > As a follow-up question, I am a bit confused as to the following behavior: > ... > How come 11143.1504 is not printed in all of these cases? float4 to numeric casting doesn't honor extra_float_digits, it just converts as many digits as will be reliable. regards, tom lane -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs