From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | Rich Shepard <rshepard(at)appl-ecosys(dot)com> |
Cc: | pgsql-general(at)postgresql(dot)org |
Subject: | Re: Looking for a function |
Date: | 2002-02-17 09:32:09 |
Message-ID: | 200202170932.g1H9W9918566@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-general |
Rich Shepard wrote:
> Is there a function that translates a numeric dollar amount into words for
> printing on a check? Long ago and far away, I had such a routine for
> Paradox/DOS so I wonder if such a utility (preferably in C) exits for use
> with a postgres app.
Yes, there is, but it is part of a data type, MONEY, that we will be
converting to numeric some day:
test=> select cash_words(100::money);
cash_words
------------------------------------
One hundred dollars and zero cents
(1 row)
--
Bruce Momjian | http://candle.pha.pa.us
pgman(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Michael | 2002-02-17 10:27:11 | Protection of intellectual property (Schema & SQL code) |
Previous Message | knut.suebert | 2002-02-17 07:47:47 | Re: Question: Who\'s Using Postgres |