/romannumeralsconverter

Provides easy way to transform Arabic numbers to Roman numerals and vice versa.

Primary LanguageScalaMIT LicenseMIT

Roman Numerals Converter

Build Status Coverage Status

This is small, one-day project to test some Scala stuff.

Overview

Converter provides easy way to transform Arabic numbers to Roman numerals and vice versa.

Inspired by XSolve Code Kata #1.

More info on my blog post.

Usage

Basically it is enough that you instantiate one of ConvertableNum case classes and execute convert.

val arabic = ArabicNum(2014)
val roman = arabic.convert 
roman == RomanNum("MMXIV") // true