Enter Numbers and receive Roman Numerals
-
Any input that is not a valid Roman Numeral will return invalid/NaN
- Example Input: ""
- Example Output: ""
-
Add the value of all the symbols
- Example Input: 6
- Example Input: VI
-
Cannot take a number higher than 3,999
- Example Input: 4,000
- Example Output: Roman numerals cannot count higher than 3,999
-
Separate ones
- Example Input: 1
- Example Output: I
-
Separate tens
- Example Input: 10
- Example Output: X
-
Separate by fifty
- Example input: 50
- Example Output: L
-
Separate hundreds
- Example Input: 100
- Example Output: C
-
Separate five hundreds
- Example Input: 500
- Example Output: D
-
Separate thousands
- Example Input: 1000
- Example Output: M
-
Identify if there more than 3 of the same character in row and switch to subtraction
- Example Input: 29
- Example Output: XXIX
- Example Input: 99
- Example Output: XCIX
- Clone GitHub Repository
- Open roman-numerals folder
- Open index.html in web browser of choice
There are no known bugs at this time
Feel free to contact Kristen at [email protected] or Luciano Oliveira at [email protected]
HTML jQuery JavaScript
This software is licensed under the MIT license
Copyright (c) 2016 Luciano Oliveira and Kristen Kulha