# How to Convert a Number to Roman Numerals

i don't How to Convert a Number to Roman Numerals Using mathematical equation. if M=1000,D=500,C=100,L=50,X=10,V=5,I=1 then how convert any decimal number to Roman Numerals?

such as if 1952 then its look like MCMLII

-
– Jayesh Oct 6 at 15:03

I would recommend reviewing this site, which also has a converter.

http://www.mathsisfun.com/roman-numerals.html

If you were looking for an algorithm, see:

http://blog.functionalfun.net/2009/01/project-euler-89-converting-to-and-from.html

This question was also answered on StackOverflow using C-Code: see. http://stackoverflow.com/questions/4986521/how-to-convert-integer-value-to-roman-numeral-string (see ValueConverter answer for an efficient approach)

Enjoy!

-A

-
Good ole' Roman Numerals! $\ddot\smile$ – amWhy May 16 '13 at 2:05