Skip to content

Latest commit

 

History

History
26 lines (19 loc) · 990 Bytes

README.md

File metadata and controls

26 lines (19 loc) · 990 Bytes

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