Converting number to words

Started by Robert Fitzpatrickover 21 years ago3 messagesgeneral
Jump to latest
#1Robert Fitzpatrick
robert@webtent.com

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

#2Alvaro Herrera
alvherre@dcc.uchile.cl
In reply to: Robert Fitzpatrick (#1)
Re: Converting number to words

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)

#3Bruce Momjian
bruce@momjian.us
In reply to: Alvaro Herrera (#2)
Re: Converting number to words

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