The Roman numeral system is an ancient way of representing numbers. The symbols are I, V, X, L, C, D and M.

learn more… | top users | synonyms

5
votes
2answers
267 views

Convert Roman to Int

I made a function that converts Roman letters to integers. But I'm not happy with it, as I feel like I used too much code for a such a simple task. Any suggestion on how I can minimize it? ...
6
votes
2answers
264 views

Positive integer to Roman Numeral conversion function

For the past two hours I was searching for a built-in function for converting an integer to an equivalent Roman numeral, but it failed to achieve the target. Hence I wrote my own routine for ...
2
votes
3answers
755 views
5
votes
1answer
823 views

Roman numerals to decimal

This is an assignment for class. I would like to know how to improve my code. It is a program to convert Roman numerals to it's decimal equivalent. This is what I have so far. There must be a better ...
3
votes
2answers
374 views

Roman numeral converter in Ruby

For a Project Euler problem, I made a Ruby roman numeral converter: ...
7
votes
1answer
118 views

Roman numeral kata in Elixir

I'm new to Elixir, and in order to learn the syntax, I'm doing a roman numeral kata which converts a decimal number into roman numeral. I would appreciate any feedback you have. ...
7
votes
2answers
289 views

Reducing verbosity of RomanNumeral class

I point to my problem in the comments of my code. I have a class RomanNumeral: ...
7
votes
2answers
2k views

Converting Roman numerals to decimal

Could someone please point out the error(s) in the given code? It was downvoted on Stack Overflow without any explanation, but it seems to be working fine for me: ...
5
votes
3answers
311 views

Converting Arabic numerals to Roman numerals

These classes are part of a program I am working on to convert Arabic numerals to Roman numerals and vice-versa. Do these classes look correct for representing objects in Java? ...
8
votes
3answers
4k views

Roman Numeral to Decimal Conversion

I'm mostly looking to get feedback on how well I've implemented the C++ language. But I would also like feedback on my algorithm. Did I make it more complex than it needs to be? Is there anything I ...
2
votes
2answers
2k views

Roman numeral converter

I'm writing a program to convert integers to Roman numerals (naively -- it doesn't know how to do the subtraction trick yet). What I have is functional, but it is not "Good Ruby". ...