# Công cụ chuyển đổi số La Mã

> Convert numbers to Roman numerals and Roman numerals to numbers, from 1 to 3,999 (3,999,999 with overlines), with the standard form of any numeral.

Phiên bản tương tác: https://www.calcopenly.com/vi/math/roman-numeral-converter
Chủ đề: Máy tính toán học

Roman numerals write numbers with seven letters: I = 1, V = 5, X = 10, L = 50, C = 100, D = 500 and M = 1000. To convert a number, the converter splits it into thousands, hundreds, tens and ones and writes each place separately; a 4 or 9 puts a smaller letter before a larger one, so 40 is XL and 900 is CM. To read a numeral, it adds the letters from left to right and subtracts any letter that stands before a larger one.

The default, 2026, splits into 2000 + 20 + 6 and becomes MMXXVI. The usual uses are years on buildings and in film credits, clock faces, chapter numbers and outlines. Reading MCMXCIV gives 1000 + 900 + 90 + 4 = 1994.

Standard numerals stop at 3999 (MMMCMXCIX). With the overline option a bar multiplies letters by 1000, so V̅ = 5000, up to 3,999,999. Non-standard numerals such as IIII or IC are still read, and the standard spelling is shown next to the value.

## Dữ liệu đầu vào

- **Đổi đơn vị** (lựa chọn: Number to Roman, Roman to number)
- **Number**: 1 to 3999; up to 3,999,999 with the overline option.
- **Roman numeral**: Letters I V X L C D M, upper or lower case.
- **Allow overline (×1000) above 3999**

## Kết quả

- Kết quả — kết quả chính
- Giá trị
- Standard Roman form

## Công thức

$$
\begin{gathered}\text{I}=1,\ \text{V}=5,\ \text{X}=10,\ \text{L}=50,\ \text{C}=100,\ \text{D}=500,\ \text{M}=1000 \\ \text{a smaller symbol before a larger one is subtracted: IV} = 4,\ \text{XC} = 90\end{gathered}
$$

## Ví dụ có lời giải

### 2421

- Đổi đơn vị: Number to Roman
- Number: 2421
- **Kết quả: MMCDXXI**
- **Giá trị: 2,421**
- Nguồn đối chiếu: Wikipedia — Roman numerals, standard-form examples (2421 = MMCDXXI); Python greedy conversion (forkA/verify_roman.py)

### 1776 (Statue of Liberty tablet)

- Đổi đơn vị: Number to Roman
- Number: 1776
- **Kết quả: MDCCLXXVI**
- Nguồn đối chiếu: Inscription JULY IV MDCCLXXVI on the Statue of Liberty's tablet; Python greedy conversion

### 3999, the largest standard numeral (edge)

- Đổi đơn vị: Number to Roman
- Number: 3999
- **Kết quả: MMMCMXCIX**
- Nguồn đối chiếu: Wikipedia — Roman numerals: MMMCMXCIX is the largest number in standard form; Excel ROMAN(3999)

### XLII to a number

- Đổi đơn vị: Roman to number
- Roman numeral: XLII
- **Kết quả: 42**
- **Giá trị: 42**
- **Standard Roman form: XLII**
- Nguồn đối chiếu: XL = 40, II = 2; Python parser (forkA/verify_roman.py)

### Lower-case mcmxciv

- Đổi đơn vị: Roman to number
- Roman numeral: mcmxciv
- **Giá trị: 1,994**
- **Standard Roman form: MCMXCIV**
- Nguồn đối chiếu: M + CM + XC + IV = 1000 + 900 + 90 + 4; Python parser

### Clock-face IIII (non-standard)

- Đổi đơn vị: Roman to number
- Roman numeral: IIII
- **Giá trị: 4**
- **Standard Roman form: IV**
- Nguồn đối chiếu: Additive reading 1+1+1+1; standard form IV (Wikipedia — Roman numerals, 'IIII' on clock faces)

## Câu hỏi

### What is 2026 in Roman numerals?

MMXXVI: MM = 2000, XX = 20 and VI = 6. Years are converted one place at a time, so 1999 is MCMXCIX (1000 + 900 + 90 + 9) rather than MIM, and 2000 is simply MM. The same rule gives MDCCLXXVI for 1776, the year inscribed on the tablet held by the Statue of Liberty.

### What is the largest Roman numeral?

In standard form the largest number is 3999, written MMMCMXCIX, because there is no letter for 5000 and a letter repeats at most three times. Excel's ROMAN function returns #VALUE! above 3999 for the same reason. Larger numbers used an overline (vinculum) that multiplies by 1000: V̅ is 5000 and I̅V̅ is 4000, which takes this converter up to 3,999,999.

### Is 4 written IV or IIII?

IV is the standard form; IIII is the additive form, and both mean 4. Standard form uses only six subtractive pairs: IV, IX, XL, XC, CD and CM. Many clock faces still show IIII for four o'clock while using IX for nine, a practice that goes back to clocks such as the late 14th-century Wells Cathedral clock. The converter reads IIII as 4 and gives IV as the standard spelling.

### Why is 99 written XCIX and not IC?

Standard form lets a letter be subtracted only from the next two larger letters: I from V and X, X from L and C, and C from D and M. So 99 is 90 + 9 = XC + IX = XCIX, and 49 is XLIX rather than IL. Excel's ROMAN function breaks the rule only on request: its form 4 writes 499 as ID, while the default form gives CDXCIX.

### Is there a Roman numeral for zero?

No. The Roman system had no symbol for zero, so the converter starts at 1. Medieval scholars wrote the Latin word nulla ("none") instead: Dionysius Exiguus used it in 525, and around 725 Bede or a colleague abbreviated it to the letter N.

### “Công cụ chuyển đổi số La Mã” chính xác đến mức nào?

Độ chính xác phụ thuộc vào dữ liệu nhập và giả định của phương pháp. Phép tính thập phân dùng 50 chữ số có nghĩa, nhưng ước lượng, phương pháp số và dữ liệu nguồn có thể kém chính xác hơn; làm tròn khi hiển thị không loại bỏ các giới hạn đó. Ví dụ có lời giải đã đối chiếu với nguồn độc lập: 8. Ví dụ, “2421” được kiểm tra bằng Wikipedia — Roman numerals, standard-form examples (2421 = MMCDXXI); Python greedy conversion (forkA/verify_roman.py).

### Phương pháp này lấy từ đâu?

Wikipedia — Roman numerals (standard form); Microsoft Excel ROMAN and ARABIC functions.

## Nguồn

- [Wikipedia — Roman numerals (standard form)](https://en.wikipedia.org/wiki/Roman_numerals)
- [Microsoft Excel ROMAN and ARABIC functions](https://support.microsoft.com/office/roman-function-d6b0b99e-de46-4704-a518-b45a0f8b56f5)
