easy Strings & Math
Roman to Integer
Convert a Roman numeral `s` to an integer. Values: I=1, V=5, X=10, L=50, C=100, D=500, M=1000. A smaller symbol before a larger one is subtracted. Example: "III" → 3; "LVIII" → 58; "MCMXCIV" → 1994.
runs in your browser