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

Converting Money to Words



     Thanks to everyone who responded to my question about converting money
to words; e.g.,  $53.62 -->   * * * *FIFTY-THREE and 62/100 DOLLARS****

     I used the Spell.sqc as a model and added additional code to create the
leading asterisks, the embedded dashes, the 'and', the pennies preceding the
'/100 Dollars and the closing asterisks.  Prior to this, the above example
would have looked like the following:  Fifty Three            As you can see
there were no leading or closing asterisks (no biggie) but the exclusion of
the pennies wasn't acceptable to the client.

     I have attached my version of Spell.sqc for your perusal and use.

     Thanks again.