From: | Alvaro Herrera <alvherre(at)2ndquadrant(dot)com> |
---|---|
To: | Gavin Flower <GavinFlower(at)archidevsys(dot)co(dot)nz> |
Cc: | Adrian Klaver <adrian(dot)klaver(at)aklaver(dot)com>, Geoff Winkless <pgsqladmin(at)geoff(dot)dj>, pgsql-general(at)lists(dot)postgresql(dot)org |
Subject: | Re: simple division |
Date: | 2018-12-05 20:37:27 |
Message-ID: | 20181205203727.lo6fadn6ttwyjqia@alvherre.pgsql |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
On 2018-Dec-06, Gavin Flower wrote:
> Calculators normally work in floating point (in fact, as far as I am aware,
> they never work in integer mode by default),
The reason they don't work in "integer mode" is because it doesn't make
sense.
We only have this thing called "integer division" because it's a cheap
thing to implement in terms of machine instructions.
--
Álvaro Herrera https://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services
From | Date | Subject | |
---|---|---|---|
Next Message | Phil Endecott | 2018-12-06 00:34:03 | Limitting full join to one match |
Previous Message | Gavin Flower | 2018-12-05 17:31:29 | Re: simple division |