# ARABIC

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

This function takes a [string](../../variable-data-types/the-text-variable-data-type) as input. If this string represents a number in Roman numerals, the ARABIC function returns the corresponding Arabic [Number](../../variable-data-types/the-number-variable-data-type).

#### Declaration

```javascript
ARABIC(roman_numeral) -> number
```

&#x20;

#### 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:

```javascript
ARABIC("I") -> 1
```

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

```javascript
ARABIC("MMMMMCCCXXVII") -> 5372
```

#### &#x20;Discussion:

The ARABIC function can be considered the opposite of [ROMAN](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:

```javascript
ROMAN(ARABIC(roman_numeral)) -> roman_numeral
```
