Click here to Skip to main content
15,884,353 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
hi friends please help me

i am using window application .i have two textboxes. one is textbox1 and second textbox2
. i want if i enter decimal number into the textbox1 so textbox2 should be change the world into the words.
if i enter 2200 in textbox1 then words should be display in textbox2 (two thousand two hundred rupees only).
Posted
Comments
Andy Lanng 20-May-15 5:14am    
I answered a similar question just a week ago. Have you searched for the answer?
CHill60 20-May-15 5:15am    
Post the code that you have tried so far
dirtyshooter 20-May-15 5:18am    
what do u mean by decimal numbers?

1 solution

Hi,

Have a look an excellent open source project called Humanizer[^], which has a function called ToWords()[^] that provides that functionality.

Snippet from the readme to demonstrate it's usage:
C#
1.ToWords() => "one"
10.ToWords() => "ten"
11.ToWords() => "eleven"
122.ToWords() => "one hundred and twenty-two"
3501.ToWords() => "three thousand five hundred and one"


... hope it helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900