Skip to content · ⁨Passer au contenu⁩

Roman numerals · ⁨Chiffres romains⁩

English

Roman numerals

Convert a Roman numeral to an int. The symbols are I=1, V=5, X=10, L=50, C=100, D=500, M=1000. Usually you add, but when a smaller symbol sits before a larger one you subtract it: IV is 4, IX is 9, MCMXCIV is 1994. Scanning from right to left makes the subtract rule easy — subtract any symbol smaller than the one to its right.

Français

Chiffres romains

Convertissez un chiffre romain en un int. Les symboles sont I=1, V=5, X=10, L=50, C=100, D=500, M=1000. D'habitude on additionne, mais quand un symbole plus petit est placé devant un plus grand, on le soustrait : IV vaut 4, IX vaut 9, MCMXCIV vaut 1994. Scanner de droite à gauche rend la règle de soustraction facile — soustrayez tout symbole plus petit que celui à sa droite.

Log in or create account · ⁨Se connecter ou créer un compte⁩

IGCSE, A-Level & AP