roman

Converts from roman number to an integer.

@property @safe
uint
roman
(
string str
)

Examples

assert("I".roman == 1);
assert("V".roman == 5);
assert("XX".roman == 20);
assert("XL".roman == 40);
assert("MCMXCVI".roman == 1996);
assert("MMXCI".roman == 2016);

Meta