From: Ross J. Reedstrom <reedstrm@rice.edu>
To: John Hasler <john@dhh.gt.org>
Cc: pgsql-sql@postgresql.org
Subject: Re: function to format floats as money?
Date: Tue, 17 Apr 2001 14:59:43 -0500
Message-ID: <20010417145943.B19087@rice.edu> (raw)
In-Reply-To: <87ae5ftl3z.fsf@toncho.dhh.gt.org>
References: <Pine.LNX.4.30.0104171724230.762-100000@peter.localdomain>
<3ADC61E0.93E7865D@summersault.com>
<20010417124104.C17425@rice.edu>
<87ae5ftl3z.fsf@toncho.dhh.gt.org>
On Tue, Apr 17, 2001 at 01:52:16PM -0500, John Hasler wrote:
> Ross writes:
> > But seriously, numeric(10,2) (or whatever precision and scale is correct
> > for your application) is the standard answer.
>
> Floats are fine for money as long as you only add and subtract and don't
> deal in amounts that won't fit in the mantissa.
Or you're writing software in Germany (all of the EU now?) that _might_
get used in an offical capacity.
Ross
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-sql@postgresql.org
Cc: reedstrm@rice.edu, john@dhh.gt.org
Subject: Re: function to format floats as money?
In-Reply-To: <20010417145943.B19087@rice.edu>
References: <Pine.LNX.4.30.0104171724230.762-100000@peter.localdomain> <3ADC61E0.93E7865D@summersault.com> <20010417124104.C17425@rice.edu> <87ae5ftl3z.fsf@toncho.dhh.gt.org> <20010417145943.B19087@rice.edu>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox