Tag Archives: thouand

Make an extension method to convert numbers into words (as in “one thousand eight hundred twelve”) in C#

This example builds the ToWords extension method to convert numbers into words. (For example, converting 1,337 into “one thousand, three hundred thirty seven.) The method extends the double class, and is implemented in the static class DoubleExtensions. The following code … Continue reading

Posted in algorithms, extension methods, mathematics | Tagged , , , , , , , , , , , , , , , , | 6 Comments