RomanNumerals

Encode and decode Roman numerals!

Source

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

decode(numerals_binary)

Converts a Roman numeral binary to an integer.

iex> RomanNumerals.decode "XCVII"
97
Source
encode(positive_integer)

Converts a positive integer to a Roman numeral binary.

iex> RomanNumerals.encode 1991
"MCMXCI"
Source