Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.84_2) (envelope-from ) id 1dJMJj-0003SE-D5 for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jun 2017 15:59:19 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84_2) (envelope-from ) id 1dJMJi-0003gA-Kn for pgsql-bugs@arkaria.postgresql.org; Fri, 09 Jun 2017 15:59:18 +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_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJMJh-0003d7-Kk for pgsql-bugs@postgreSQL.org; Fri, 09 Jun 2017 15:59:17 +0000 Received: from sss.pgh.pa.us ([66.207.139.130]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1dJMJe-0004Sp-RH for pgsql-bugs@postgreSQL.org; Fri, 09 Jun 2017 15:59:17 +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 v59FxAG5031433; Fri, 9 Jun 2017 11:59:10 -0400 From: Tom Lane To: =?utf-8?q?Jaroslav_Sivy?= cc: pgsql-bugs@postgreSQL.org Subject: Re: =?utf-8?q?Re=3A_=5BBUGS=5D_BUG_=2314695=3A_Documentation_is_not_accurate?= In-reply-to: <20170609164957.F84AA9F7@pobox.sk> References: <20170609065706.26503.29688@wrigleys.postgresql.org> 000000005e4e002420c80249702f <20170609164957.F84AA9F7@pobox.sk> Comments: In-reply-to =?utf-8?q?Jaroslav_Sivy?= message dated "Fri, 09 Jun 2017 16:49:57 +0200" MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-ID: <31431.1497023950.1@sss.pgh.pa.us> Content-Transfer-Encoding: quoted-printable Date: Fri, 09 Jun 2017 11:59:10 -0400 Message-ID: <31432.1497023950@sss.pgh.pa.us> X-Pg-Spam-Score: -1.9 (-) 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 =3D?utf-8?q?Jaroslav_Sivy?=3D writes: > The problem is in "largest integer not greater than argument" and "smalle= st integer not less than argument" > As you can see Largest integer from -42.8 is not -43, but infact its 42, = because in negative numbers -42 > -43 Well, it still looks correct to me. FWIW, you're not the first to be confused by this. In currently-supported releases we've rephrased it as ceil(dp or numeric) nearest integer greater than or equal to argument floor(dp or numeric) nearest integer less than or equal to argument But 8.1 is six years out of support and its docs aren't going to be updated any more. regards, tom lane --=20 Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs