Python  1.0
Functions
_03c_int2roman Namespace Reference

Converting decimal numbers to roman numerals. More...

Functions

def int2roman (num)
 Converts an integer number to its roman numeral representation. More...
 
def main (argv=None)
 

Detailed Description

Converting decimal numbers to roman numerals.

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
25/12/2008
See also
http://en.wikipedia.org/wiki/Roman_numerals
http://www.onlineuniversity.net/resources/roman-numeral-date-conversion-resource/

Function Documentation

◆ int2roman()

def _03c_int2roman.int2roman (   num)

Converts an integer number to its roman numeral representation.

Parameters
numgiven number.
Returns
a string with num represented as a roman numeral.
An int to roman converter.

Referenced by main().

◆ main()

def _03c_int2roman.main (   argv = None)

References _01d_dec2bin.input, and int2roman().