Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltEPp-0003iX-NN for pgsql-general@arkaria.postgresql.org; Tue, 15 Jun 2021 19:08:01 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.92) (envelope-from ) id 1ltEPo-0006Fn-MB for pgsql-general@arkaria.postgresql.org; Tue, 15 Jun 2021 19:08:00 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltEPa-0000zg-N5 for pgsql-general@lists.postgresql.org; Tue, 15 Jun 2021 19:07:46 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ltEPY-0005st-7u for pgsql-general@postgresql.org; Tue, 15 Jun 2021 19:07:46 +0000 Received: from sss1.sss.pgh.pa.us (localhost [127.0.0.1]) by sss.pgh.pa.us (8.15.2/8.15.2) with ESMTP id 15FJ7fXw436969; Tue, 15 Jun 2021 15:07:41 -0400 From: Tom Lane To: AI Rumman cc: pgsql-general General Subject: Re: CONCAT function adding extra characters In-reply-to: References: Comments: In-reply-to AI Rumman message dated "Tue, 15 Jun 2021 11:55:52 -0700" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <436967.1623784061.1@sss.pgh.pa.us> Date: Tue, 15 Jun 2021 15:07:41 -0400 Message-ID: <436968.1623784061@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk AI Rumman writes: > I am using Postgresql 10 and seeing a strange behavior in CONCAT function > when I am concatenating double precision and int with a separator. > select concat('41.1'::double precision,':', 20); >> Result: >> 41.1000000000000014:20 What have you got extra_float_digits set to? regards, tom lane