The latest edition of TUGboat (vol. 28 no. 2, 2007), the journal of the TeX users group, contains an article by Edward Reingold, Writing numbers in words in TeX, which, as its title states, gives TeX macros for converting integers to names. In this case, American English names. For my amusement Sunday I wrote the equivalent procedure in Maple. Programming it in Maple was, not surprisingly, considerably easier than in TeX. Its usefulness, however, will likely be even less in Maple. Here is the file, 84_NumbersToWords.mpl.

It can handle integers such that -10< i <10. Here is an example,

"twenty-three trillion nine hundred seventy billion nine hundred twenty-seven million
four hundred nine thousand eight hundred forty-two"

Please Wait...