Number to Word conversion

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • doll
    New Member
    • Jul 2007
    • 24

    Number to Word conversion

    hi
    i want to convert a number in the numerical form to words..please help me.. i want to know the design(form design) also..so please provide me the code and the design in vb.net
    thanking you
  • RoninZA
    New Member
    • Jul 2007
    • 78

    #2
    geez doll - we're going to start charging you for doing all your work! ;)

    There's no way to convert numbers to their actual words...use a switch statement:
    Code:
    switch (myNumber)
    {
        case 0:
            return "zero";
            break;
        case 1:
            return "one";
            break;
        case 2:
            return "two";
            break;
        case 3:
            return "three";
            break;
    .
    .
    .
    etc...
    }

    Comment

    • Plater
      Recognized Expert Expert
      • Apr 2007
      • 7872

      #3
      I am pretty sure I saw this question months ago around here but now cannot find it.
      I did find this however which might help:

      Comment

      Working...