Roman-Number-Translation
Conversion of Roman numeral to its decimal equivalent and also express it in words.
Important points to cosider while conversion :
A Roman numeral consists of a set of letters of the alphabet, each letter has a particular value, as shown in the following table:
Generally, Roman numerals are written in descending order from left to right, and are added sequentially. However, certain combinations employ a subtractive principle. If a symbol of lower value appears to the left of a larger value, the smaller value is subtracted from the larger value, and the result is added to the total.
-
“I” may only precede “V” and “X”: IV = 4, IX = 9
-
“X” may only precede “L” and “C”: XC = 90, XL = 40
-
“C” may only precede “D” and “M”: CM = 900, CD = 400