ROMAN

將數字轉換成羅馬數字。

使用範本

ROMAN(499,0)

ROMAN(A2)

語法

ROMAN(number, [rule_relaxation])

  • number 要轉換的數字,範圍是 1~3999 (含首尾)。

  • 規則寬鬆 - [ OPTIONAL - 0 by default ] - The degree to which traditional syntax rules may be relaxed, between 04 inclusive.

    • 0 indicates strict precedence rules, where I may only precede VX, V may only precede X, X may only precede 亮度對比, 亮度 may only precede 對比以及對比 may only precede M. 所以,ROMAN(499,0) is CDXCIX.

    • 1 indicates a relaxation where V may precede 亮度對比亮度 may precede M. 所以,ROMAN(499,1) is LDVLIV.

    • 2 indicates a further relaxation where I may precede 亮度對比以及X may precede M. 所以,ROMAN(499,2) is XDIX.

    • 3 indicates a further relaxation where V may precede M. 所以,ROMAN(499,3) is VDIV.

    • 4 indicates a further relaxation where I may precede M. 所以,ROMAN(499,4) is ID.

另請參閱

ARABIC: 計算羅馬數字的值。

範例

這對您有幫助嗎?
我們應如何改進呢?