Skip to content

pierlaz/RomanNumerals

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RomanNumerals

The Romans wrote their numbers using letters; specifically the letters 'I' meaning '1', 'V' meaning '5', 'X' meaning '10', 'L' meaning '50', 'C' meaning '100', 'D' meaning '500', and 'M' meaning '1000'.

Basic combinations
numerals

Examples:
1984 = MCMLXXXIV
2014 = MMXIV

Rules:
There were certain rules that the numerals followed which should be observed:

  • The symbols 'I', 'X', 'C', and 'M' can be repeated at most 3 times in a row.
  • The symbols 'V', 'L', and 'D' can never be repeated.
  • The '1' symbols ('I', 'X', and 'C') can only be subtracted from the 2 next highest values ('IV' and 'IX', 'XL' and 'XC', 'CD' and 'CM').
  • Only one subtraction can be made per numeral ('XC' is allowed, 'XXC' is not).
  • The '5' symbols ('V', 'L', and 'D') can never be subtracted.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%