FromRomanNumeral

FromRomanNumeral["string"]

gives the integer corresponding to the Roman numeral "string".

Details

  • Numerals can be specified with either upper- or lowercase characters.

Examples

open allclose all

Basic Examples  (2)

Convert a Roman numeral into a decimal integer:

Convert a list of Roman numerals into respective decimal integers:

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:

Wolfram Research (2015), FromRomanNumeral, Wolfram Language function, https://reference.wolfram.com/language/ref/FromRomanNumeral.html.

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

BibTeX

@misc{reference.wolfram_2024_fromromannumeral, author="Wolfram Research", title="{FromRomanNumeral}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/FromRomanNumeral.html}", note=[Accessed: 22-November-2024 ]}

BibLaTeX

@online{reference.wolfram_2024_fromromannumeral, organization={Wolfram Research}, title={FromRomanNumeral}, year={2015}, url={https://reference.wolfram.com/language/ref/FromRomanNumeral.html}, note=[Accessed: 22-November-2024 ]}