can anyone help me in figuring out how to convert numbers into words with the use of loops and arrays. The numbers should calculate up to millions.
Here's an example: if user types 9246 , It should print Nine Thousand Two Hundred Forty Six .
Loading
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Anoop Kumar SharmaRank #127 · 17.4K reputationPosted Sep 11, 2014, 3:36 AM EDT
http://www.c-sharpcorner.com/UploadFile/b942f9/converting-numbers-to-words-in-C-Sharp/
Hope this will help you.
Xavier Henry4 reputationPosted Sep 11, 2014, 3:43 AM EDT
Arunava BhattacharjeeRank #635 · 3.8K reputationPosted Sep 11, 2014, 4:11 AM EDT
Ramesh MaruthiRank #937 · 2.2K reputationPosted Sep 11, 2014, 5:57 AM EDT
Use the Humanizer .. Please look at the below link
http://www.hanselman.com/blog/NuGetPackageOfTheWeekHumanizerMakesNETDataTypesMoreHuman.aspx
Jignesh TrivediRank #16 · 50.3K reputationPosted Sep 11, 2014, 8:18 PM EDT
Hi,
There is no built in function that convert number to word...
so you must Preserve value like 1= one 2= two so on....
to Preserve this Below link he/she use Array...
http://www.c-sharpcorner.com/UploadFile/b942f9/converting-numbers-to-words-in-C-Sharp/
In anyway you have to use NumberToText function :)
hope this will help you.