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 1h4Gt9-00018n-HN for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2019 03:18:35 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1h4Gt7-0001pn-ME for pgsql-hackers@arkaria.postgresql.org; Thu, 14 Mar 2019 03:18:33 +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 1h4Gt7-0001pg-FG for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2019 03:18:33 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1h4Gt5-0002Fd-10 for pgsql-hackers@lists.postgresql.org; Thu, 14 Mar 2019 03:18:33 +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 x2E3IRmh002504; Wed, 13 Mar 2019 23:18:27 -0400 From: Tom Lane To: Andrew Dunstan cc: Michael Paquier , Postgres hackers , laetitia.avrot@gmail.com Subject: Re: pgsql: Add support for hyperbolic functions, as well as log10(). In-reply-to: References: <20190313022159.GR13812@paquier.xyz> <24813.1552447002@sss.pgh.pa.us> <20190313050331.GT13812@paquier.xyz> <17820.1552514192@sss.pgh.pa.us> Comments: In-reply-to Andrew Dunstan message dated "Wed, 13 Mar 2019 23:06:51 -0400" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <2502.1552533507.1@sss.pgh.pa.us> Date: Wed, 13 Mar 2019 23:18:27 -0400 Message-ID: <2503.1552533507@sss.pgh.pa.us> List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk Andrew Dunstan writes: > Or we could possibly call the function and then turn a result of -0 into 0? But -0 is the correct output if the input is -0. So that approach requires distinguishing -0 from 0, which is annoyingly difficult. regards, tom lane