Python  1.0
Functions | Variables
_03a_roman2int Namespace Reference

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
 

Detailed Description

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.

Author
Paulo Roma
Since
12/05/2010
See also
http://en.wikipedia.org/wiki/Roman_numerals
http://www.onlineuniversity.net/resources/roman-numeral-date-conversion-resource/

Function Documentation

◆ main()

def _03a_roman2int.main (   argv = None)

References input, and roman2int().

◆ roman2int()

def _03a_roman2int.roman2int (   roman)

Converts a roman numeral to its decimal representation.

Parameters
romana roman numeral.
Returns
the roman decimal representation.
A roman to int converter.

Referenced by main(), and validateRoman.main().

Variable Documentation

◆ input

_03a_roman2int.input = raw_input

Referenced by main().