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 1gUXHy-0003tZ-Pv for pgsql-general@arkaria.postgresql.org; Wed, 05 Dec 2018 13:32:31 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.89) (envelope-from ) id 1gUXHw-0006zV-DJ for pgsql-general@arkaria.postgresql.org; Wed, 05 Dec 2018 13:32:28 +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 1gUXHv-0006uB-Bq for pgsql-general@lists.postgresql.org; Wed, 05 Dec 2018 13:32:28 +0000 Received: from out4-smtp.messagingengine.com ([66.111.4.28]) by magus.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.89) (envelope-from ) id 1gUXHm-0008TK-TS for pgsql-general@lists.postgresql.org; Wed, 05 Dec 2018 13:32:22 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 11EA0210DC; Wed, 5 Dec 2018 08:32:17 -0500 (EST) Received: from mailfrontend2 ([10.202.2.163]) by compute6.internal (MEProxy); Wed, 05 Dec 2018 08:32:17 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=aklaver.com; h= subject:to:references:from:message-id:date:mime-version :in-reply-to:content-type:content-transfer-encoding; s=fm1; bh=/ DAmZuqRxsocc2BwZGO/lyaF7vP3iyt09gwHCtCFu4s=; b=Epo+1r8LPE3goou09 yJeGT7yUjWghwMEmDQstWPL7sjXC/TDtTHQfrnmW8cTA9CYxgRhUoh76/6vWTe7Y 9uaGMAgfpFNyuvB8sKfCvyBVslY6rM5kksXdcjlpcDeCTkTgm6OlrMHO91wKn1nF x7U5Ofhv0KSWyLDUoBkAz4rSs6eSkp1RUKPNmS3KvaG2PWiRObS4CHR3QiXjP1rg 0JJ4xCW6/REBRFpfHVjqZd0YR/k3bVYoj0Hf370v3U+AzB041r1Na9Uo9+JK4D4U fWTN6rOL4X+dVJvjuPWdZFjTQQIeRbpscY0sSOf16SIiJiGyX8GGTEf5rJ/IAclb TKkyA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm1; bh=/DAmZuqRxsocc2BwZGO/lyaF7vP3iyt09gwHCtCFu 4s=; b=ENoWUC3Lk1V4igyec6JlVKPQ83WzUc4chY3fzw2KhrtRV/2TfgbJJEyv2 TgnMNE7gKzIF4nPKLAkBEK4uQ90M/Jr//bPh1XVI6KkXgXf9piM2Ghys694TjR13 sLgxL5S006LCkvziN+PsE+fRp1d4aiTO+YfjqeYwsZoRujbaUSV4p92l9rw2mXr/ ZnUELJ8uH/OYrsq2ddvn6vQk88VzQ1mGFYh+t9WVHE8Qas9VTyKS3+fDeEPtc07B MptN9m5zZSl2F8ihFp7WjURkAlBDv/8CG6nDB7wCQTbXLlrEDd+gOys1PGyU2dgx eIWOShCKeOx8xxnAOeiBEGyEVaXtQ== X-ME-Sender: X-ME-Proxy: Received: from [192.168.1.3] (unknown [71.212.134.3]) by mail.messagingengine.com (Postfix) with ESMTPA id 6036610303; Wed, 5 Dec 2018 08:32:15 -0500 (EST) Subject: Re: simple division To: Gavin Flower , Geoff Winkless , pgsql-general@lists.postgresql.org References: <4DEACFC2-E8E3-4C61-805B-56A5F76CB819@northwestern.edu> <8B35EF9C-8DEF-4298-A646-89D1AC8F63E1@northwestern.edu> <1F5FCEFC-7DEA-46FA-9895-FBF7DFDEC750@northwestern.edu> <627868ba-0d4b-8995-d29a-db6b7ca3673d@gmail.com> <611dee86-118f-df30-a942-2441fc04668f@archidevsys.co.nz> <59110313-9F31-4D7F-BAAC-4223EE751CC7@gmail.com> <8135455f-2a19-b91f-5336-7824813e2762@archidevsys.co.nz> From: Adrian Klaver Message-ID: <1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com> Date: Wed, 5 Dec 2018 05:32:14 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <8135455f-2a19-b91f-5336-7824813e2762@archidevsys.co.nz> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Precedence: bulk On 12/5/18 4:45 AM, Gavin Flower wrote: > On 06/12/2018 00:05, Geoff Winkless wrote: >> On Wed, 5 Dec 2018 at 09:13, Gavin Flower >> wrote: >>> SELECT ceil(10/4.0); >> Geoff >> > If you divide one integer by another, then it is logical to get an > integer as as the answer. Hmm, grab any of my calculators and divide 10/4 and get 2.5. Seems not everybody agrees with that logic:) -- Adrian Klaver adrian.klaver@aklaver.com