The Kata says you should write a function to convert from Decimals to Roman numerals. In order to keep the kata light, we will not check for valid Roman Numeral.
Roman numerals, the numeral system of ancient Rome, uses combinations of letters from the Latin alphabet to signify values. They are based on seven symbols:
Value | Symbol |
---|---|
1 | I |
5 | V |
10 | X |
50 | L |
100 | C |
500 | D |
1000 | M |
Numbers are formed by combining symbols together and adding the values. Generally, symbols are placed in order of value, starting with the largest values. When smaller values precede larger values, the smaller values are subtracted from the larger values, and the result is added to the total.
Example:
Roman Number | Value |
---|---|
MMVI | 2006 |
MCMXLIV | 1944 |
http://www.novaroma.org/via_romana/numbers.html