Skip to content

A basic calculator for roman numerals from 'I (1)' to 'MMMCMXCIX (3999)'

License

Notifications You must be signed in to change notification settings

sebastianstucke87/roman_numerals_calculator

Repository files navigation

ROMAN NUMERALS CALCULATOR

A basic calculator for roman numerals from I (1) to MMMCMXCIX (3999).

Usage

use RomanNumeralsCalculator\Application\SumRomanNumerals;

$calc = SumRomanNumerals::create();
$result = $calc->execute('XIX', 'xxiii'); // 19 + 23

$result->arabicNumeral(); // 42
$result->romanNumeral(); // "XLII"


// Any number of arguments can be passed in
$anotherResult = $calc->execute('I', 'II', 'III', 'IV', 'V', ...);

Limitations

"Vinculum"-numbers (> 3999) are currently not supported.

More Info

About

A basic calculator for roman numerals from 'I (1)' to 'MMMCMXCIX (3999)'

Resources

License

Stars

Watchers

Forks

Languages