RomanNumerals
Encode and decode Roman numerals!
Summary
decode(numerals_binary) | Converts a Roman numeral binary to an integer |
encode(positive_integer) | Converts a positive integer to a Roman numeral binary |
Functions
Converts a Roman numeral binary to an integer.
iex> RomanNumerals.decode "XCVII"
97
Converts a positive integer to a Roman numeral binary.
iex> RomanNumerals.encode 1991
"MCMXCI"