FromRomanNumeral
FromRomanNumeral["string"]
gives the integer corresponding to the Roman numeral "string".
Examples
open allclose allBasic Examples (2)
Scope (3)
Roman numerals can be given in upper case, in lower case, or a mixture of both:
The numeral "N" represents the integer 0:
FromRomanNumeral threads automatically over lists of numerals:
Properties & Relations (2)
RomanNumeral converts a decimal integer into its Roman numeral form:
FromRomanNumeral["string"] is equivalent to FromDigits["string","Roman"]:
Possible Issues (1)
FromRomanNumeral can interpret nonstandard forms of Roman numerals:
In fact, any combination of valid digits is interpreted as an integer:
To check whether a given roman numeral is written in canonical form, compare to the output of RomanNumeral:
Text
Wolfram Research (2015), FromRomanNumeral, Wolfram Language function, https://reference.wolfram.com/language/ref/FromRomanNumeral.html.
CMS
Wolfram Language. 2015. "FromRomanNumeral." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/FromRomanNumeral.html.
APA
Wolfram Language. (2015). FromRomanNumeral. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/FromRomanNumeral.html