罗马数字转换器

将整数转换成罗马数字和回数。

整个数字1-3999, 或罗马数字, 类似MMXXIV。
结果成果 —
转换 —

输入结果时更新 。

这个计算器给你正确的答案了吗?

关于此计算器

A Roman numeral converter turns an ordinary number from 1 to 3,999 into Roman numerals like MCMLXXXIV, or reads a Roman numeral back into a number. Romans built values from the seven symbols I, V, X, L, C, D and M — worth 1, 5, 10, 50, 100, 500 and 1,000.

The system is mostly additive, writing larger symbols before smaller ones and adding them up, but it uses a subtractive shortcut for the 4s and 9s: IV is 4, IX is 9, XL is 40 and CM is 900. This converter also validates the input, rejecting malformed numerals such as IIII or VX.

Worked example: 2024 breaks into 1000 + 1000 + 10 + 10 + 4, which is MM + XX + IV = MMXXIV. Reading it back, MMXXIV adds 1000 + 1000 + 10 + 10 + (5 − 1) = 2024. Because the symbols only reach M, the largest value the standard system can write is 3,999, or MMMCMXCIX.

经常问到的问题

减法规则如何运作?

When a smaller symbol comes before a larger one it is subtracted: IV is 4 (5 − 1), IX is 9, XL is 40 and CM is 900. Otherwise symbols are added left to right.

为什么最高3 999?

标准罗马数字仅高达3,999(MMMCMXCIX)。 代表4,000或更多的人需要一条大多数字体和表格无法显示的线性符号。

罗马数字是零吗?

不,罗马系统没有零和没有位置值的符号,这也是它最终被阿拉伯数字数字取代的原因之一。

我如何用罗马数字写4和9?

它们使用减法规则:4是四(五之前一个),9是九(十之前一个)。同样的模式显示40=XL,90=XC,400=CD,900=CM。

罗马数字MM244号是多少?

MMXXIV是2024: 2 个母体为2,000, 2个Xs为20, 4个罗马数字转换器读取左到右的每个符号, 当小符号先于大符号时减去。

为什么转换器拒绝I这样的数字?

标准罗马符号从不重复符号4次;4次是四、而不是三号书写。转换器检查数字是否为卡通式,并将非标准拼写标为无效。

❤️ 爱 Calculator.Free? 分享它

𝕏  X Facebook Reddit
API - 使用代码中的计算器

将此计算器称为自由 JSON 端点 。 不需要按键 。 将字段值发送到下面作为查询参数或 JSON 。 任何您省略的, 都会使用相同的默认值, 此页面预填的默认值是预填的; 未知参数是 400, 而不是静音零 。 读取 API 全部文件 →

终点

GET https://calculator.free/api/v1/roman-numerals/

curl

curl "https://calculator.free/api/v1/roman-numerals/?amount=2024&from=arabic&to=roman"

JavaScript fetch()

const r = await fetch(
  "https://calculator.free/api/v1/roman-numerals/?" + new URLSearchParams({
    "amount": "2024",
    "from": "arabic",
    "to": "roman"
  }));
const data = await r.json();
console.log(data.results);

成果仅是一般指导的估计数,而不是财务、医疗或税务咨询。