Re: dividing money by money

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
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 10:20:54
Message-ID: 1279362054.17928.5.camel@vanquo.pezone.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers pgsql-www

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?

In response to

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Simon Riggs 2010-07-17 10:30:56 Re: bg worker: overview
Previous Message Peter Eisentraut 2010-07-17 10:20:23 Re: dividing money by money

Browse pgsql-www by date

  From Date Subject
Next Message Andy Balholm 2010-07-17 14:20:45 Re: dividing money by money
Previous Message Peter Eisentraut 2010-07-17 10:20:23 Re: dividing money by money