pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: John Hasler <john@dhh.gt.org>
To: pgsql-sql@postgresql.org
Subject: Re: function to format floats as money?
Date: 17 Apr 2001 13:52:16 -0500
Message-ID: <87ae5ftl3z.fsf@toncho.dhh.gt.org> (raw)
References: <Pine.LNX.4.30.0104171724230.762-100000@peter.localdomain>
	<3ADC61E0.93E7865D@summersault.com>
	<20010417124104.C17425@rice.edu>

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.
-- 
John Hasler
john@dhh.gt.org (John Hasler)
Dancing Horse Hill
Elmwood, WI



view thread (7+ messages)  latest in thread

Message-ID: <87ae5ftl3z.fsf@toncho.dhh.gt.org>
Permalink:  ../87ae5ftl3z.fsf@toncho.dhh.gt.org/
Also on:    postgresql.org/message-id/87ae5ftl3z.fsf@toncho.dhh.gt.org

 · 

reply

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: john@dhh.gt.org
  Subject: Re: function to format floats as money?
  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>

* 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