![]() |
Python
1.0
|
Converting roman numerals to decimal. More...
Functions | |
def | roman2int (roman) |
Converts a roman numeral to its decimal representation. More... | |
def | main (argv=None) |
Variables | |
input = raw_input | |
Converting roman numerals to decimal.
Roman numerals, the numeric system in ancient Rome, uses combinations of letters from the Latin alphabet to signify values. The numbers 1 to 10, 50, 100, 500 e 1000 can be expressed in Roman numerals as follows:
In the Middle Ages, a horizontal line was used above a particular numeral, or parentheses placed around it, to represent one thousand times that numeral.
def _03a_roman2int.main | ( | argv = None | ) |
References input, and roman2int().
def _03a_roman2int.roman2int | ( | roman | ) |
Converts a roman numeral to its decimal representation.
roman | a roman numeral. |
A roman to int converter.
Referenced by main(), and validateRoman.main().
_03a_roman2int.input = raw_input |
Referenced by main().