RomanNumerals

Encode and decode Roman numerals!

Source

Summary

decode(numerals)

Converts a Roman numeral binary to an integer

encode(number)

Converts a positive integer to a Roman numeral binary

Types

Functions

decode(numerals)

Specs:

Converts a Roman numeral binary to an integer.

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

Specs:

Converts a positive integer to a Roman numeral binary.

iex\> RomanNumerals.encode 1991
\"MCMXCI\"
Source