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

From Nils Zonneveld
Subject Re: I want more Money (the data type, of course! :-))
Date
Msg-id 3B06AA03.B6BE12C8@mbit.nl
Whole thread Raw
In response to I want more Money (the data type, of course! :-))  (Carlos Moreno <moreno@mochima.com>)
List 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

pgsql-general by date:

Previous
From: Björn Lundin
Date:
Subject: Autocommit off in psql??
Next
From: liman@linux.sanyres.es (Liman bad-adn)
Date:
Subject: Re: perl vs php for postgresql