https://github.com/kronopt/romannumeralsconverter
Convert Roman Numerals into Arabic Numerals (and vice versa)
https://github.com/kronopt/romannumeralsconverter
python python-2 roman-numerals
Last synced: 8 months ago
JSON representation
Convert Roman Numerals into Arabic Numerals (and vice versa)
- Host: GitHub
- URL: https://github.com/kronopt/romannumeralsconverter
- Owner: Kronopt
- License: mit
- Archived: true
- Created: 2017-12-17T22:13:42.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T00:54:06.000Z (over 8 years ago)
- Last Synced: 2024-09-29T16:23:33.253Z (over 1 year ago)
- Topics: python, python-2, roman-numerals
- Language: Python
- Homepage:
- Size: 23.4 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RomanNumeralsConverter [](https://travis-ci.org/Kronopt/RomanNumeralsConverter)
Convert Roman Numerals into Arabic Numerals (and vice versa)
#### Dependencies
Python 2.7
#### How to run
Through the command line, like so:
`RomanNumeralsConverter.py type numeral`
* `type` is either 'roman' or 'arabic', to explicitly define the type of numeral to convert
* `numeral` is either a Roman numeral or an Arabic numeral (both between 1 and 3899)
* `-h, --help` shows the help text
A malformed numeral will yield either `""`, for Roman numerals, or `-1`, for Arabic numerals