How Roman numerals are built
Seven letters carry the values: I = 1, V = 5, X = 10, L = 50, C = 100, D = 500 and M = 1000. To write a number, the tool takes the largest value that fits, again and again, using the six subtractive pairs IV (4), IX (9), XL (40), XC (90), CD (400) and CM (900). Reading works from right to left: a letter smaller than the one after it is subtracted, otherwise it is added.
Worked example
1947 is M (1000) + CM (900) + XL (40) + VII (7) = MCMXLVII. 2026 is MMXXVI. Republic Day, 26 January 1950, can be written XXVI·I·MCML.
Limits and common mistakes
- Only 1 to 3999. There is no Roman numeral for zero, and larger numbers need a bar over the letters, which plain text cannot show.
- 4 is IV, not IIII (many clock faces use IIII, but it is not the standard form), and 1999 is MCMXCIX, not MIM.
- The reverse conversion is forgiving: it reads non-standard forms such as IIII or IC and still gives a number. Convert that number back to see the standard spelling.
- Only I, V, X, L, C, D and M are accepted; any other letter gives no result.
Frequently Asked Questions
Why does IIII decode even though the usual form is IV?
The decoder adds and subtracts recognised numeral letters without enforcing every writing convention. It can accept nonstandard forms. Convert the decoded number back to Roman numerals to see the form this encoder produces.
What range can I convert from an ordinary number?
The number-to-Roman direction accepts whole numbers from 1 to 3999. It does not create an overbar notation for larger values, a fraction or a symbol for zero.
How can I check a year by hand?
Split it into thousands, hundreds, tens and ones. For 1947, use M for 1000, CM for 900, XL for 40 and VII for 7, giving MCMXLVII. Check subtractive pairs such as CM separately.