RomanNumerals
Encode and decode Roman numerals!
Summary↑
| decode(numerals) | Converts a Roman numeral binary to an integer |
| encode(number) | Converts a positive integer to a Roman numeral binary |
Types ↑
Functions
Specs:
- decode(roman_numerals) :: pos_integer
Converts a Roman numeral binary to an integer.
iex\> RomanNumerals.decode \"XCVII\"
97
Specs:
- encode(pos_integer) :: roman_numerals
Converts a positive integer to a Roman numeral binary.
iex\> RomanNumerals.encode 1991
\"MCMXCI\"