Problem 59237. Roman to Integer Conversion
The idea behind this cody problem is to write a code that converts the Roman Numerals to Integers.
A numeral system known as Roman numerals (I, V, X, L, C, D, M), were used in ancient Rome, where letters represented numbers. They were in use in Europe in the late middle ages. The conversion of the Roman numerals and their indian or arabic conversion is listed as follows:
'I' = 1
'V' = 5
'X' = 10
'L' = 50
'C' = 100
'D' = 500
'M' = 1000
How the conversion works can be seen from this Wikipedia link
Have fun with the problem!
Solution Stats
Problem Comments
Solution Comments
Show commentsProblem Recent Solvers9
Suggested Problems
-
Project Euler: Problem 4, Palindromic numbers
1257 Solvers
-
middleAsColumn: Return all but first and last element as a column vector
640 Solvers
-
Longest run of consecutive numbers
6394 Solvers
-
Right Triangle Side Lengths (Inspired by Project Euler Problem 39)
2027 Solvers
-
Find and replaces spaces from a input string with *
168 Solvers
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!