pg.ddx.io  pgsql-general@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Adrian Klaver <adrian.klaver@aklaver.com>
To: Gavin Flower <GavinFlower@archidevsys.co.nz>
To: Geoff Winkless <pgsqladmin@geoff.dj>
To: pgsql-general@lists.postgresql.org
Subject: Re: simple division
Date: Wed, 5 Dec 2018 05:32:14 -0800
Message-ID: <1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com> (raw)
In-Reply-To: <8135455f-2a19-b91f-5336-7824813e2762@archidevsys.co.nz>
References: <4DEACFC2-E8E3-4C61-805B-56A5F76CB819@northwestern.edu>
	<dd63a926-6711-b795-6485-5029b9556213@commandprompt.com>
	<CAKFQuwZXO4WJqEbmWUtnCvDhRfVqYWbFx7bQ8D-Q-mxPRqEKgg@mail.gmail.com>
	<8B35EF9C-8DEF-4298-A646-89D1AC8F63E1@northwestern.edu>
	<CAKFQuwZ-OXBEXjLa0i_1SwyiiiEwMcfuhZyC3cpe2aKZRpcJag@mail.gmail.com>
	<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>
	<fda12258-5bac-7094-39e7-4ea55c8854fb@archidevsys.co.nz>
	<CAEzk6ffEqKAcyin0OG5FoW=ayP0Pz8O2EFi8gKjv7qcSLQ7nVg@mail.gmail.com>
	<8135455f-2a19-b91f-5336-7824813e2762@archidevsys.co.nz>

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 
>> <GavinFlower@archidevsys.co.nz> 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




view thread (25+ messages)  latest in thread

Message-ID: <1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com>
Permalink:  ../1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com/
Also on:    postgresql.org/message-id/1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-general@postgresql.org
  Cc: adrian.klaver@aklaver.com, GavinFlower@archidevsys.co.nz, pgsqladmin@geoff.dj
  Subject: Re: simple division
  In-Reply-To: <1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com>
  References: <4DEACFC2-E8E3-4C61-805B-56A5F76CB819@northwestern.edu> <dd63a926-6711-b795-6485-5029b9556213@commandprompt.com> <CAKFQuwZXO4WJqEbmWUtnCvDhRfVqYWbFx7bQ8D-Q-mxPRqEKgg@mail.gmail.com> <8B35EF9C-8DEF-4298-A646-89D1AC8F63E1@northwestern.edu> <CAKFQuwZ-OXBEXjLa0i_1SwyiiiEwMcfuhZyC3cpe2aKZRpcJag@mail.gmail.com> <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> <fda12258-5bac-7094-39e7-4ea55c8854fb@archidevsys.co.nz> <CAEzk6ffEqKAcyin0OG5FoW=ayP0Pz8O2EFi8gKjv7qcSLQ7nVg@mail.gmail.com> <8135455f-2a19-b91f-5336-7824813e2762@archidevsys.co.nz> <1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox