Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.89) (envelope-from ) id 1fC3Sw-00035n-Fd for pgsql-docs@arkaria.postgresql.org; Fri, 27 Apr 2018 13:31:10 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1fC3Sv-0004oA-El for pgsql-docs@arkaria.postgresql.org; Fri, 27 Apr 2018 13:31:09 +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.89) (envelope-from ) id 1fC3Sv-0004nx-5Y for pgsql-docs@lists.postgresql.org; Fri, 27 Apr 2018 13:31:09 +0000 Received: from momjian.us ([72.94.173.45]) by makus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1fC3Ss-0002NY-IQ for pgsql-docs@lists.postgresql.org; Fri, 27 Apr 2018 13:31:07 +0000 Received: from bruce by momjian.us with local (Exim 4.84_2) (envelope-from ) id 1fC3Sr-0000ta-46; Fri, 27 Apr 2018 09:31:05 -0400 Date: Fri, 27 Apr 2018 09:31:05 -0400 From: Bruce Momjian To: edigitalb@gmail.com, pgsql-docs@lists.postgresql.org Subject: Re: Wrong example Message-ID: <20180427133105.GA32454@momjian.us> References: <152480490305.19807.16598844579387497315@wrigleys.postgresql.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <152480490305.19807.16598844579387497315@wrigleys.postgresql.org> User-Agent: Mutt/1.5.23 (2014-03-12) List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On Fri, Apr 27, 2018 at 04:55:03AM +0000, PG Doc comments form wrote: > The following documentation comment has been logged on the website: > > Page: https://www.postgresql.org/docs/7.1/static/functions-math.html > Description: > > The last row of table Table 4-4. Mathematical Functions seems to be wrong at > example column, current value > > trunc(numeric, s integer) numeric truncate to s decimal > places round(42.4382, 2) 42.43 > > Possible solution > > trunc(numeric, s integer) numeric truncate to s decimal > places trunc(42.4382, 2) 42.43 Uh, Postgres 7.1 is _decades_ old and will not be fixed. I suggest you look at the Postgres 10 docs. -- Bruce Momjian http://momjian.us EnterpriseDB http://enterprisedb.com + As you are, so once was I. As I am, so you will be. + + Ancient Roman grave inscription +