Re: dividing money by money

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Boszormenyi Zoltan" <zb(at)cybertec(dot)at>, "John R Pierce" <pierce(at)hogranch(dot)com>
Cc: <andy(at)balholm(dot)com>,<pgsql-bugs(at)postgresql(dot)org>
Subject: Re: dividing money by money
Date: 2010-03-30 15:25:57
Message-ID: 4BB1D1B50200002500030204@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

John R Pierce <pierce(at)hogranch(dot)com> wrote:
> Boszormenyi Zoltan wrote:

>> But then any operator between two money values would
>> only work if both values have the same currency.

That sounds like a sane limitation.

> and, are there still any currenccies like old style UK where
> the subunits aren't 100ths? schillings or whatever

I'm not sure if you're arguing for or against the database type
knowing how to divide those to get a percentage, versus putting the
onus on the application programmer. Where does it make the most
sense to you to put such logic?

-Kevin

In response to

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Lothar Bongartz 2010-03-30 15:27:45 BUG #5395: UPDATE on shutdown overwrites table
Previous Message Alvaro Herrera 2010-03-30 13:49:32 Re: dividing money by money