Re: simple division

From: Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>
To: Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz>, Geoff Winkless <pgsqladmin(at)geoff(dot)dj>, pgsql-general(at)lists(dot)postgresql(dot)org
Subject: Re: simple division
Date: 2018-12-05 13:32:14
Message-ID: 1f9abda9-6122-a23d-bdfe-acfa0be29e64@aklaver.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

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(at)archidevsys(dot)co(dot)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(dot)klaver(at)aklaver(dot)com

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Raymond Brinzer 2018-12-05 13:32:55 Re: simple division
Previous Message Geoff Winkless 2018-12-05 12:54:41 Re: simple division