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.92) (envelope-from ) id 1j7hjL-0000LA-Im for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Feb 2020 15:39:11 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1j7hjJ-0004Fi-3a for pgsql-bugs@arkaria.postgresql.org; Fri, 28 Feb 2020 15:39:09 +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 1j7hjI-0004Fb-OW for pgsql-bugs@lists.postgresql.org; Fri, 28 Feb 2020 15:39:08 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1j7hjG-00054v-If for pgsql-bugs@lists.postgresql.org; Fri, 28 Feb 2020 15:39:07 +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 01SFd1dm000963; Fri, 28 Feb 2020 10:39:01 -0500 From: Tom Lane To: Dean Rasheed cc: anyhowstep@hotmail.com, PostgreSQL mailing lists Subject: Re: BUG #16281: LN() function inaccurate at 1000th fractional digit In-reply-to: References: <16281-279f299d9c06e56f@postgresql.org> Comments: In-reply-to Dean Rasheed message dated "Fri, 28 Feb 2020 07:18:55 +0000" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <960.1582904341.1@sss.pgh.pa.us> Date: Fri, 28 Feb 2020 10:39:01 -0500 Message-ID: <962.1582904341@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Dean Rasheed writes: > On Fri, 28 Feb 2020 at 05:43, PG Bug reporting form > wrote: >> The last digit should be a 2, but pg thinks it's a 3, > Yeah, that's not at all surprising. All the transcendental numeric > functions are basically +/-1 in the final digit. TBH, I'd be ecstatic if I thought that was the maximum possible error ;-). I don't think anyone's really done any error propagation analysis on the numeric transcendentals. regards, tom lane