Re: Money casting too liberal?

From: "D'Arcy J(dot)M(dot) Cain" <darcy(at)druid(dot)net>
To: Julian <tempura(at)internode(dot)on(dot)net>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Money casting too liberal?
Date: 2013-03-30 13:47:38
Message-ID: 20130330094738.63f04d0f@imp
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

On Sat, 30 Mar 2013 20:36:22 +1100
Julian <tempura(at)internode(dot)on(dot)net> wrote:
> The comparisons with timezones ends when it comes to exchange rates.

The only comparison I made with time and time zones was in how the
column type can be refined when it is created.

> With a current WIP. I'm starting to think that numeric is probably
> overkill for storing monetary values as well (are we going to go much
> more than 6 decimal places? and thats just for storing the rates...).
>
> Now considering just using integers. All the formatting of the input
> and display for output is done in the front end, just don't make a
> mistake there.

Yes, that's exactly why the money type exists.

--
D'Arcy J.M. Cain <darcy(at)druid(dot)net> | Democracy is three wolves
http://www.druid.net/darcy/ | and a sheep voting on
+1 416 788 2246 (DoD#0082) (eNTP) | what's for dinner.
IM: darcy(at)Vex(dot)Net, VOIP: sip:darcy(at)Vex(dot)Net

In response to

Browse pgsql-general by date

  From Date Subject
Next Message D'Arcy J.M. Cain 2013-03-30 13:52:54 Re: Money casting too liberal?
Previous Message D'Arcy J.M. Cain 2013-03-30 12:09:01 Re: Money casting too liberal?