ROMAN

The function ROMAN takes a number and converts into Roman numerals.

This function takes a single Number as input. It returns a string: the given number represented in Roman numerals.

Declaration

ROMAN(number) -> roman_numeral

Parameters

number (required, type: Number) Any Number.

Return Values

roman_numeral (type: string) The Roman numeral representation of the given Number.

Examples

The following example takes the Number 1 and returns it in Roman numeral form:

ROMAN(1) -> "I"

The following example takes the Number 5372 and returns it in Roman numeral form:

ROMAN(5372) -> "MMMMMCCCXXVII"

Discussion:

The ROMAN function can be considered the opposite of ARABIC. That is, for a given number example_number, the ARABIC function can be used to undo what the ROMAN function did, like so:

ARABIC(ROMAN(example_number)) -> example_number

Last updated