Convert numbers into Roman numerals.
Seven letters carry all values: I is 1, V is 5, X is 10, L is 50, C is 100, D is 500, and M is 1,000. Numbers are built by placing symbols in descending order and adding them together, so MMXXVI is 2,026.
The exception is subtractive notation. When a smaller symbol precedes a larger one, it is subtracted: IV is 4, IX is 9, XL is 40, XC is 90, CD is 400, and CM is 900. Only those six combinations are valid โ I subtracts from V and X, X from L and C, C from D and M.
The system has no zero and no way to write fractions in standard form, which is precisely why it was replaced for calculation. Try multiplying MCMXLVII by XXIII and the problem becomes obvious.
These rules were not strictly observed in antiquity. Roman inscriptions contain forms that modern convention rejects, including IIII for four โ which survives on clock faces to this day, apparently for visual balance against VIII opposite.
Roman numerals persist wherever tradition or visual formality matters: monarchs and popes, film copyright dates, Super Bowl numbering, book preface pagination, clock faces, building cornerstones, and the outline levels of formal documents.
Chemistry uses them for oxidation states โ iron(III) chloride โ and music theory for chord degrees. In each case the numerals signal a category rather than a quantity, which is a job they still do well.
Break it into thousands, hundreds, tens, and units, then convert each. MCMLXXXIV splits into M (1000), CM (900), LXXX (80), IV (4) โ 1984. Working left to right in place-value chunks is far faster than trying to parse the whole string at once.