@ROMAN
— Converts an
integer to a Roman numeral, or vice versa.
Syntax:
%@ROMAN[
n | text]
n | an integer in the range 1 … 4999, or |
text | a Roman numeral |
If the argument begins with a letter, it is assumed to be a Roman
numeral, and @ROMAN
will attempt to convert it into an integer
(case is not significant.) If the argument does not begin with a
letter, it’s an integer to be converted to a Roman numeral.
C:\> echo %@roman[%_year]
MMX
C:\> echo %@roman[cclix]
259
• Note: This function does not check that input Roman numerals are well-formed or canonical. If you pass it an ill-formed string such as VVVC or IXXM, it will return a (meaningless) integer rather than an error message; purgamentum init, exit purgamentum.
• New: This function does not exist in Take Command.