ARABIC
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
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:
The following example takes the string "MMMMMCCCXXVII" and returns the Arabic Number associated with the Roman numeral MMMMMCCCXXVII:
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:
Last updated