First Steps
Package features
Guide for Contributors
All the Rest
plasmapy.utils.roman.
from_roman
Convert a Roman numeral to an integer.
s (str) – A Roman numeral.
result – The integer corresponding to the Roman numeral.
int
TypeError
str
InvalidRomanNumeralError
See also
to_roman()
Examples
>>> from_roman('V') 5 >>> from_roman('MMMMCCCLXVII') 4367