convert currency to words
Cameron Laird
claird at lairds.com
Tue Dec 31 08:45:20 EST 2002
In article <aus3kn$e81$2 at mawar.singnet.com.sg>,
Ng Pheng Siong <ngps at netmemetic.com> wrote:
>According to Min <sweet41080 at hotmail.com>:
>> I'm having problem in developing a program to convert currency to english
>> words. Example: $123.90 - One hundred twenty three dollars and ninety
>> cents Are there anybody that already has developed the program? Thanks
>> for the help.
>
>I haven't seen this in Python, but IIRC the programming textbook "Simply
>Scheme" has a chapter (or at least a few sections) on converting numbers to
>English words.
>
>The code is Scheme, of course, but perhaps the algorithm is explained so
>you can easily (heh) express it in Python.
.
.
.
<URL: http://wiki.tcl.tk/591 > solves this problem.
Translation from the Tcl in which it's expressed to
Python is straightforward.
--
Cameron Laird <Cameron at Lairds.com>
Business: http://www.Phaseit.net
Personal: http://phaseit.net/claird/home.html
More information about the Python-list
mailing list