Skip to content

roman

Convert an Arabic number to a Roman numeral.

v = roman(number, form)

Returns the Roman numeral string for number (1–3999). Optional form (0–4) controls how concise the representation is — 0 (default) is classical, 4 is most concise.

roman(14) % 'XIV'
roman(499) % 'CDXCIX'
  • arabic — Convert a Roman numeral to an Arabic number.