This is a tweaked and extended version of the "numbers2words" class.
The original class contained a couple of spelling errors ("fourty" and "eightteen"). It also added "and" too often ("two thousand and three hundred and twelve" instead of "two thousand three hundred and twelve"). Furthermore, it didn't hyphenate certain numbers ("twenty one" instead of "twenty-one").
Two options have been added:
• You can choose whether you want ordinal suffixes added ("one" vs. "first")
• You can choose whether you want the string capitalized ("two thousand and three" vs. "Two Thousand and Three") |