RomanNumeral
RomanNumeral[n]
gives a string corresponding to the Roman numeral form of the integer n.
Details
- Roman numerals are formed using combinations of the letters I, V, X, L, C, D, and M.
- The number 0 is represented as the numeral "N", the initial letter of the word nulla.
- RomanNumeral[n] for a negative integer n produces the result corresponding to the absolute value of n.
- For numbers above 4999, specifications for overbars are inserted into the string given as the result.
Examples
open allclose allBasic Examples (2)
Scope (5)
Roman numerals are constructed using the letters I, V, X, L, C, D, and M:
The integer 0 is represented using the numeral "N". No other Roman numeral contains the letter N:
Beginning with 5000, integers have an overbar in their representation:
Each additional factor of 1000 adds another overbar:
RomanNumeral threads automatically over lists of integers:
Properties & Relations (4)
RomanNumeral returns strings in uppercase. Use ToLowerCase to convert to lowercase:
These are the possible repetitions and their counts in the first 4999 Roman numerals:
FromRomanNumeral converts a Roman numeral into its integer decimal form:
RomanNumeral[n] is equivalent to IntegerString[n,"Roman"]:
Text
Wolfram Research (2015), RomanNumeral, Wolfram Language function, https://reference.wolfram.com/language/ref/RomanNumeral.html.
CMS
Wolfram Language. 2015. "RomanNumeral." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/RomanNumeral.html.
APA
Wolfram Language. (2015). RomanNumeral. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/RomanNumeral.html