Reading and writing Roman numerals
Roman numerals are an additive system. You write the letters from largest to smallest and add them: VIII is 5 + 1 + 1 + 1 = 8, and MDCLXVI is 1000 + 500 + 100 + 50 + 10 + 5 + 1 = 1666. No letter repeats more than three times in a row in the standard form, which is where the subtractive pairs come in.
A smaller letter written before a larger one is subtracted from it. Only six such pairs are used: IV (4), IX (9), XL (40), XC (90), CD (400) and CM (900). Each one is a power of ten placed before the next five or ten of it. That rule is why 49 is XLIX, which is 40 plus 9, and not IL. It also means every number from 1 to 3999 has exactly one standard spelling.
To write a number, split it by place value and write each part on its own. 1994 is 1000 + 900 + 90 + 4, which is M + CM + XC + IV, so MCMXCIV. 2024 is 2000 + 20 + 4, which is MM + XX + IV, so MMXXIV. To read a numeral, go from left to right and add each value, but subtract any letter that is smaller than the one after it. In MCMXCIV, the C before M and the X before C and the I before V are each subtracted.
You still meet Roman numerals in film copyright dates, book chapters and front matter, clock faces, the names of monarchs and popes, and the numbering of events such as the Super Bowl. Outlines and legal documents use the lowercase forms i, ii, iii and iv for sub-points.
The converter covers the standard form from 1 to 3999. It refuses non-standard numerals such as IIII and IC instead of quietly reading them, because a converter that accepts anything teaches the wrong form. The refusal still tells you what the letters add up to. Larger numbers once used a bar over a letter to multiply it by 1,000, but there is no agreed way to type that, so they are left out. Zero and fractions are outside the system.