Skip to content

bramwelt/numerals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Numerals

https://travis-ci.org/bramwelt/numerals.png?branch=master

The primary goal of this package is to be used as a reference on packaging python code. Its secondary goal is to function as a working Roman numeral converter and translator.

Examples

Given a integer convert it to a unicode string of Roman numerals:

$ python
>>> from numerals import int_to_roman
>>> int_to_roman(7)
>>> u'VII'

Given a unicode string of Roman numerals, return an integer:

$ python
>>> from numerals import roman_to_int
>>> roman_to_int(u'XLII')
>>> 42

Installation

::
pip install numerals

About

A python package for converting to and from Roman numerals.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages