From: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us> |
---|---|
To: | Peter Eisentraut <peter_e(at)gmx(dot)net> |
Cc: | Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, Andy Balholm <andy(at)balholm(dot)com>, pgsql-hackers(at)postgresql(dot)org |
Subject: | Re: dividing money by money |
Date: | 2010-07-17 14:39:14 |
Message-ID: | 8193.1279377554@sss.pgh.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers pgsql-www |
Peter Eisentraut <peter_e(at)gmx(dot)net> writes:
> On fre, 2010-07-16 at 10:31 -0400, Tom Lane wrote:
>> The other argument that I found convincing was that if the
>> operator was defined to yield numeric, people might think that
>> the result was exact ... which of course it won't be, either way.
>> Choosing float8 helps to remind the user it's an approximate quotient.
> Why is it approximate? Aren't money values really integers?
1/3 is going to yield an approximate result either way.
regards, tom lane
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2010-07-17 15:00:36 | Re: dividing money by money |
Previous Message | Andy Balholm | 2010-07-17 14:20:45 | Re: dividing money by money |
From | Date | Subject | |
---|---|---|---|
Next Message | Kevin Grittner | 2010-07-17 15:00:36 | Re: dividing money by money |
Previous Message | Andy Balholm | 2010-07-17 14:20:45 | Re: dividing money by money |