Tagged Questions

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
239 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
183 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
609 views
5
votes
1answer
437 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
311 views

Roman numeral converter in Ruby

For a Project Euler problem, I made a Ruby roman numeral converter: ...
7
votes
1answer
113 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
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: ...
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 ...