Conversor de Números RomanosFórmula

## Roman Numeral Conversion

### Roman Numeral Symbols

| Symbol | Value |
|--------|-------|
| I | 1 |
| V | 5 |
| X | 10 |
| L | 50 |
| C | 100 |
| D | 500 |
| M | 1000 |

### 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

- 2000 = MM
- 20 = XX
- 4 = IV

Ejemplo Resuelto

Convert 2024 to Roman numerals.

  1. Thousands: floor(2024/1000) = 2 → MM
  2. Hundreds: floor(24/100) = 0 → (none)
  3. Tens: floor(24/10) = 2 → XX
  4. Ones: 4 → IV
  5. Result: MMXXIV