4Suite
™
API Documentation
►
Module
Ft
.
Xml
.
Xslt
.Roman
Light-weight functions to convert from Roman-Numerals to ints, and vice-versa.
Functions:
IToRoman
Globals:
factor_list
,
roman_equiv
Functions
IToRoman
(
num
)
Globals
factor_list
= [1000, 500, 100, 50, 10, 5, 1]
roman_equiv
= {1: 'I', 5: 'V', 10: 'X', 50: 'L', 100: 'C', 500: 'D', 1000: 'M'}