dbTalk Databases Forums  

Converting number to words

comp.databases.postgresql.general comp.databases.postgresql.general


Discuss Converting number to words in the comp.databases.postgresql.general forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Robert Fitzpatrick
 
Posts: n/a

Default Converting number to words - 11-05-2004 , 04:18 PM






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


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)


Reply With Quote
  #2  
Old   
Alvaro Herrera
 
Posts: n/a

Default Re: Converting number to words - 11-05-2004 , 04:52 PM






On Fri, Nov 05, 2004 at 05:18:01PM -0500, Robert Fitzpatrick wrote:
Quote:
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)


---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo (AT) postgresql (DOT) org)



Reply With Quote
  #3  
Old   
Bruce Momjian
 
Posts: n/a

Default Re: Converting number to words - 11-05-2004 , 11:46 PM



Alvaro Herrera wrote:
Quote:
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 (AT) candle (DOT) 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

---------------------------(end of broadcast)---------------------------
TIP 7: don't forget to increase your free space map settings



Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.