PHP Classes

Classes of DrDoc

Recommend this page to a friend!
  All class groups  >  All authors  >  Classes of DrDoc (1)  >  Mission progress status  >  Reputation  
Picture of DrDoc
Name: DrDoc <contact>
Classes: 1
Country: United States United States
Age: ???
All time rank: 2681370 in United States United States
Week rank: 238 Up28 in United States United States Up
All time users: 788
Week users: 0
 
  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z  
  Files folder image SpellOutNumbers  
Convert numbers to text, w/ or w/o ordinal suffix.
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")
RatingsUtility Consistency Documentation Examples Tests Videos Overall Rank
All time: 91% 83% 75% - - - 61% 1029
Month: Not yet rated by the users


  A   B   C   D   E   F   G   H   I   J   K   L   M   N   O   P   Q   R   S   T   U   V   W   X   Y   Z