roman-numbers
v1.0.2
Published
Converts roman numbers to arabic (and vice versa)
Downloads
1,757
Maintainers
Readme
Roman Numbers
A simple package to convert roman to arabic numbers (and vice versa). It also can check valid roman format.
Installation
How to use it
Fist of all you can require it as follow:
isValidArab
Checks if given value can be converted to roman. Only integers (it checks the type) from 1 to 3999 are valid values.
isValidRoman
Checks if given value can be converted to arab. Only capitalized strings with a valid roman format are valid values.
romanToArab
Converts valid roman number to arab.
arabToRoman
Converts valid roman number to arab.