Re: I want more Money (the data type, of course! :-))

From: Nils Zonneveld <nils(at)mbit(dot)nl>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: I want more Money (the data type, of course! :-))
Date: 2001-05-19 17:14:47
Message-ID: 3B06AA03.B6BE12C8@mbit.nl
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Carlos Moreno wrote:
>
> No, it's not spam! :-)
>
> I'm just wondering if there is a data type like Money, but with
> a (much much much) higher range -- checking the documentation,
> it would look like PG uses an int (32bits) to store the amount
> of cents -- but -21 million to +21 million is insufficient for
> accounting of a small company... :-(
>
> Float is out of the question, of course (if it is really stored
> as a float or double).
>
> Any suggestions?

I normally use Numeric(10,2)

HTH,

Nils

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Peter Eisentraut 2001-05-19 17:41:12 Re: Inheritance and reference integrity
Previous Message Jani Averbach 2001-05-19 15:53:10 Inheritance and reference integrity