Conversor de Números Romanos — Formula
Roman Numeral Conversion
Roman Numeral Symbols
Rules
1. Symbols are generally written from largest to smallest, left to right 2. If a smaller symbol appears before a larger one, subtract it (e.g., IV = 4, IX = 9) 3. The same symbol can be repeated up to 3 times in a row
Example: 2024 = MMXXIV
Exemplo Resolvido
Convert 2024 to Roman numerals.
- Thousands: floor(2024/1000) = 2 → MM
- Hundreds: floor(24/100) = 0 → (none)
- Tens: floor(24/10) = 2 → XX
- Ones: 4 → IV
- Result: MMXXIV