Re: Money data type in PostgreSQL?

From: Greg Stark <gsstark(at)mit(dot)edu>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: Money data type in PostgreSQL?
Date: 2003-12-03 15:22:42
Message-ID: 87fzg26i4d.fsf@stark.dyndns.tv
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general


"Claudio Lapidus" <clapidus(at)hotmail(dot)com> writes:

> With regard to precision, it is common in certain applications the need to
> handle very small amounts, especially when used as factors of a larger
> calculation. I've even seen once some rates defined in hundredths of cents!

Normally there's nothing smaller than a tenth of a cent in US currency. It's
called a "mill". (or "mil"? I forget.). Of course you have to multiply
currency amounts by floating point numbers like interest rates or such, and
that will produce strange numbers but they'll always be rounded off to at
least mills and usually cents. You never actually debit or credit partial
mills.

At least that's how I was taught it was supposed to work.
I'm sure someone somewhere isn't following it.

--
greg

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Christopher Murtagh 2003-12-03 16:03:21 Re: Good open source mailing list system PHP / Postgresql
Previous Message Alvaro Herrera 2003-12-03 15:22:38 Re: Feature Request for 7.5