RosettaCodeData/Task/Roman-numerals-Encode/00DESCRIPTION

12 lines
525 B
Text
Raw Permalink Normal View History

2015-02-20 00:35:01 -05:00
{{omit from|GUISS}}
2013-04-10 23:57:08 -07:00
2016-12-05 22:15:40 +01:00
;Task:
Create a function taking a positive integer as its parameter and returning a string containing the Roman numeral representation of that integer. Modern Roman numerals are written by expressing each digit separately, starting with the left most digit and skipping any digit with a value of zero.
2015-02-20 00:35:01 -05:00
2016-12-05 22:15:40 +01:00
In Roman numerals:
* 1990 is rendered: 1000=M, 900=CM, 90=XC; resulting in MCMXC
* 2008 is written as 2000=MM, 8=VIII; or MMVIII
* 1666 uses each Roman symbol in descending order: MDCLXVI
<br><br>