Tag Archives: Arabic numerals

Make extension methods that convert to and from Roman numerals in C#

The example Convert to and from Roman numerals in C# uses the RomanToArabic and ArabicToRoman methods to convert between Arabic and Roman numerals. See that example for a description of those methods. This example creates extension methods to make the … Continue reading

Posted in algorithms, extension methods, mathematics | Tagged , , , , , , , , , | Comments Off on Make extension methods that convert to and from Roman numerals in C#

Convert to and from Roman numerals in C#

For a nice discussion of Roman numerals, see Roman Numerals, How they work. That page explains the basic rules and more advanced rules such as using parentheses or an overline to multiply values by 1,000. It includes a lot of … Continue reading

Posted in algorithms, mathematics | Tagged , , , , , , , , | 1 Comment