Converting Numeric Value to English words

Posted by NamrataC under ASP.NET on 10/7/2009 | Views : 2883 | Status : [Member] | Replies : 2
Hi All,

I'm trying to convert my cheque amount into English words please help me to do so as I'm unable to get an optimum solution for the same.




Responses

Posted by: Vuyiswamb on: 10/7/2009 [Member] [MVP] [Administrator] NotApplicable

Up
0
Down
Good Evening

Look at this

http://www.codeproject.com/KB/cs/codesamples.aspx

http://www.codeproject.com/KB/miscctrl/NumToWord.aspx

http://www.dotnetspider.com/resources/2743-Code-Convert-numbers-word.aspx

Thank you for Posting at Dotnetfunda

Vuyiswa Maseko

Thank you for posting at Dotnetfunda
[Administrator]

NamrataC, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: NamrataC on: 10/8/2009 [Member] Starter

Up
0
Down

Hi,
I've tried these codes.
The problem with the first code is that if I enter 0 in hundreds place it gives problem.
For example,
my number is 51091 it gives fifty one thousand hundred and ninety one
which is incorrect.

The code from second link works only if numbers are from the given array.

The code from third link also fails when I enter 6 digit number
For example,
My number is 151091 it gives me One hundred fifty one thousand hundred and ninety one

Please give me some other solution

NamrataC, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response