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

From Dave Cramer
Subject Re: I want more Money (the data type, of course! :-))
Date
Msg-id 019b01c0e2f4$3e9da3f0$0401a8c0@INSPIRON
Whole thread Raw
In response to I want more Money (the data type, of course! :-))  (Carlos Moreno <moreno@mochima.com>)
List pgsql-general
Carlos,

We use int8 and keep everything in pennies. Works for us ;)

Dave
----- Original Message -----
From: "Carlos Moreno" <moreno@mochima.com>
To: <pgsql-general@postgresql.org>
Sent: Saturday, May 19, 2001 10:35 AM
Subject: [GENERAL] I want more Money (the data type, of course! :-))


>
> 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?
>
> Thanks,
>
> Carlos
> --
>
> ---------------------------(end of broadcast)---------------------------
> TIP 4: Don't 'kill -9' the postmaster
>


pgsql-general by date:

Previous
From: "Ahmet Temiz"
Date:
Subject: ...
Next
From: Peter Eisentraut
Date:
Subject: Re: Functional Indices