The function ARABIC takes a string representing a number in Roman numerals and returns the Number it represents.

This function takes a string as input. If this string represents a number in Roman numerals, the ARABIC function returns the corresponding Arabic Number.

Declaration

ARABIC(roman_numeral) -> number

 

Parameters

roman_numeral (required, type: string)
A string containing a Roman numeral.

Return Values

number (type: Number)
The Arabic numerical representation of the given Roman numeral.

Examples

The following example takes the string "I" and returns the Arabic Number associated with the Roman numeral I:

ARABIC("I") -> 1

The following example takes the string "MMMMMCCCXXVII" and returns the Arabic Number associated with the Roman numeral MMMMMCCCXXVII:

ARABIC("MMMMMCCCXXVII") -> 5372

 Discussion:

The ARABIC function can be considered the opposite of ROMAN. That is, assuming roman_numeral is a string containing a valid Roman numeral, then the ROMAN function can be used to undo what the ARABIC function did, like so:

ROMAN(ARABIC(roman_numeral)) -> roman_numeral

 

Was this article helpful?

0 out of 0 found this helpful

Articles in this section