Thread: Converting number to words

Converting number to words

From
Robert Fitzpatrick
Date:
I searched through the net quickly and the list archives, but could not
find anything doing this. Is it possible? There is a Perl module for
doing this, but I guess cannot use modules for security reasons.

--
Robert


Re: Converting number to words

From
Alvaro Herrera
Date:
On Fri, Nov 05, 2004 at 05:18:01PM -0500, Robert Fitzpatrick wrote:
> I searched through the net quickly and the list archives, but could not
> find anything doing this. Is it possible? There is a Perl module for
> doing this, but I guess cannot use modules for security reasons.

But you can use plperlu to define a function to do that.

--
Alvaro Herrera (<alvherre[a]dcc.uchile.cl>)
"La rebeldía es la virtud original del hombre" (Arthur Schopenhauer)


Re: Converting number to words

From
Bruce Momjian
Date:
Alvaro Herrera wrote:
> On Fri, Nov 05, 2004 at 05:18:01PM -0500, Robert Fitzpatrick wrote:
> > I searched through the net quickly and the list archives, but could not
> > find anything doing this. Is it possible? There is a Perl module for
> > doing this, but I guess cannot use modules for security reasons.
>
> But you can use plperlu to define a function to do that.

cash_words() will convert an int4.

--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 359-1001
  +  If your life is a hard drive,     |  13 Roberts Road
  +  Christ can be your backup.        |  Newtown Square, Pennsylvania 19073