Formats a number in Roman numerals.
Sample Usage
ROMAN(499,0)
ROMAN(A2)
Syntax
ROMAN(number, [rule_relaxation])
-
number
- The number to format, between 1 and 3999, inclusive. -
rule_relaxation
- [ OPTIONAL - 0 by default ] - The degree to which traditional syntax rules may be relaxed, between0
and4
inclusive.-
0
indicates strict precedence rules, whereI
may only precedeV
andX
,V
may only precedeX
,X
may only precedeL
andC
,L
may only precedeC
, andC
may only precedeD
andM
. ThereforeROMAN(499,0)
isCDXCIX
. -
1
indicates a relaxation whereV
may precedeL
andC
andL
may precedeD
andM
. ThereforeROMAN(499,1)
isLDVLIV
. -
2
indicates a further relaxation whereI
may precedeL
andC
, andX
may precedeD
andM
. ThereforeROMAN(499,2)
isXDIX
. -
3
indicates a further relaxation whereV
may precedeD
andM
. ThereforeROMAN(499,3)
isVDIV
. -
4
indicates a further relaxation whereI
may precedeD
andM
. ThereforeROMAN(499,4)
isID
.
-
See Also
ARABIC
: Computes the value of a Roman numeral.