Questions tagged [roman-numerals]

This tag indicates that the challenge involves Roman numerals

Filter by
Sorted by
Tagged with
13
votes
2answers
2k views

Roman numeral converter function

Create the shortest function to convert a string of Roman numerals to an integer. The rules for each letter can be found at the Wikipedia page. Letters above 1,000 will have parentheses placed ...
13
votes
8answers
1k views

Convert to Roman Numeral!

Your task is to convert a given positive integer from Arabic numeral to Roman numeral. Things get difficult when you count to 4000. The romans did this by adding a line above a symbol to multiply ...
11
votes
8answers
1k views

Convert arbitrary roman numeral input to integer output [duplicate]

The usual rules: no external resources, or the like. Input will be a positive integer in valid Roman numeral format less than 10 thousand, say. Use all the Roman numeral characters: I = 1 V = 5 X ...
33
votes
18answers
3k views

Code Romanization

The challenge is to make any Roman numerals valid code in your chosen language. They should not appear inside of strings or anything similar, but work just like any other tokens, literals such as (...
18
votes
8answers
3k views

Create a Roman Numeral calculator

Create a basic calculator for Roman numerals. Requirements Supports +,-,*,...
21
votes
4answers
2k views

Optimal short-hand roman numeral generator

Goal: Write a function that takes a number as input and returns a short-hand roman numeral for that number as output. Roman Numeral Symbols: ...
8
votes
12answers
973 views

Adding, the old-fashioned way

Overview The ancient Romans devised a number system using Latin letters, which served them well, and which is still used by modern civilization, though to a much smaller degree. In the time of its use,...
20
votes
7answers
1k views

Look-and-say sequence: roman numerals edition

Challenge description We've had a few challenges involving the Look-and-say sequence. Quick reminder: The sequence starts with 1, Subsequent terms of this ...