Click here to Skip to main content
11,702,130 members (66,420 online)
Click here to Skip to main content

Tagged as

Converting numbers to the word equivalent.

, 20 Aug 2010 CPOL 5.4K 3
*Edited* EVEN MORE *Edited* Boosted Silic0re09 version. It will work with up to 10^3002 or 3003 characters or novenonagintanongentillion. I've also refactored it a bit for you to have a better grade. For sanity sake, I've put the delimiters in text files. You can download them...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

12 May 2013
OriginalGriff
2 alternatives  
If your tutor asks you to convert numbers to words (i.e. 565 to a string "Five hundred and sixty-five") then you are not alone! Here is the simplest, most foolproof way to do it.
19 Aug 2010
Ron Beyer
I'm sorry, but that's a horrible way to do it...Here is what I would do... public class NumberToWords { public static string ConvertToWords(int Number) { //Split the string into 3 part pieces string numStr = Number.ToString(); ...
12 May 2013
ProgramFOX
This is an alternative for "Converting numbers to the word equivalent. "

License

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

Share

About the Author

Simon Dufour
Software Developer SNC-Lavalin inc.
Canada Canada
I have a three years technical education in computer science (June 2006) and a four years bachelor's degree in Software Engineering from the École de Technologie Supérieure (August 2010). I worked as a Web Developper at the beginning of my career before being recruited as a .NET Analyst-Programer at SNC-Lavalin in Montreal.

| | Privacy | Terms of Use | Mobile
Web03 | 2.8.150819.1 | Last Updated 20 Aug 2010
Article Copyright 2010 by Simon Dufour
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid