From: Len Morgan <len-morgan@xroadstx.com>
To: pgsql-sql@postgresql.org
Subject: Money Data Type
Date: Wed, 03 Jun 1998 11:55:21 -0500
Message-ID: <35757FF9.C2D22CBD@bbs.xroadstx.com> (raw)
I am having a problem converting a data type of money to type float.
After 'greping' all the documentation directorys, I can't find a
reference to
"money", "Money", or "MONEY" but I know it's in there somewhere because
I have a money type (a mistake I now realize) in my database.
How do I convert from type money to type float and back?
float4(moneyfield) gives me a huge number (something e+09). I get
similar
results with float8, float, and even int4().
Thanks in advance.
Len Morgan
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: len-morgan@xroadstx.com
Subject: Re: Money Data Type
In-Reply-To: <35757FF9.C2D22CBD@bbs.xroadstx.com>
References: <35757FF9.C2D22CBD@bbs.xroadstx.com>
* 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