[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: Sqr Help (money to words)



Cc: attmail!tjchapin (TOM CHAPIN)
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii


If you have access to the book "The AWK Programming Language" by
Alfred V. Aho, Brian W. Kernighan, and Peter J. Weinberger [Addison-
Wesley, 1988], section 3.1, page 75 contains an awk script to
convert money to words for a check-writing application.  I would
expect the algorithm could be converted to other languages if desired.

Tom Chapin

On Feb 2,  6:19pm, Mark W. Salem wrote:
> Subject: Re: Sqr Help
> Thanks for responding.  Here is my question:
>
>         Help!  I am in desperate need of a solution to converting a
numeric
> money field into its word equivilent; e.g.,
>  $1,652.97 -->   One thousand - six hundred - fifty - two and 97/100
>
> I am using Oracle on a Unix server with a Window's 95 client...
>
> Any suggestions?
>
>-- End of excerpt from Mark W. Salem

--
Tom Chapin - attmail!tjchapin = tjchapin@mail.att.net - 314-519-5576