Re: simple division
Raymond Brinzer <ray.brinzer@gmail.com>
From: Raymond Brinzer <ray.brinzer@gmail.com>
To: pgsqladmin@geoff.dj
Cc: GavinFlower@archidevsys.co.nz, pgsql-general@lists.postgresql.org
Date: 2018-12-05T13:32:55Z
Lists: pgsql-general
On Wed, Dec 5, 2018 at 7:55 AM Geoff Winkless <pgsqladmin@geoff.dj> wrote: > Where's the logical progression in step 3 here: > > 1 You asked the computer a question > > 2 The values you passed to it don't have decimal points > > ... > > 4 Ergo, you wanted an answer that was incorrect. > Well put. However the nature of the question you asked does not necessarily allow for a correct finite answer. If I ask for 10/3, for instance, or 1/0. To play devil's advocate, then: you should have known that some of the answers would need to be truncated. This just truncates a little more aggressively. ;-) -- Ray Brinzer