Thursday, April 03, 2008

NumberToWord Function

private string[] _englishDigitMatrix = new string[]{"", "Second", "Third", "Fourth","Fifth", "Sixth", "Seventh", "Eighth","Nineth"};

public string changeNumericToWords(int number)

{

      string ret = _englishDigitMatrix.GetValue(number - 1).ToString();

       return ret;

}

 

0 comments: