Numbers to Roman Numerals Converter Online


Number


Roman Numeral

Related Pages: Roman Numerals Chart 1-1000, Roman Numerals to Numbers.

About Numbers to Roman Numerals Converter:

This online Numbers to Roman Numerals Converter helps you to convert one number into a Roman Numeral. Put number into the first textbox, the Roman Numeral result will show in the second textbox.

Roman Numerals:

Roman numerals is invented by ancient Rome, it use letters from Latin ("I" for "1", "V" for "5", "X" for "10", "L" for "50", "C" for "100", "D" for "500", "M" for "1000") to represent numbers. Roman numerals is still widely used in academic paper chapter numbering system.

How to convert from Numbers to Roman Numerals?

  1. Step 1: Remember the value combination list ["M": 1000, "CM": 900, "D": 500, "CD": 400, "C": 100, "XC": 90, "L": 50, "XL": 40, "X": 10, "IX": 9, "V": 5, "IV": 4, "I": 1], Remember its order and each value.

  2. Step 2: From left to right, subtract as much large combination as you can, unless it’s not smaller than 0.

Example 1: Convert Number "424" to Roman Numeral:

numbers to roman numerals example 1

Example 2: Convert Number "2019" to Roman Numeral:

numbers to roman numerals example 2

Numbers to Roman Numerals conversion table:

Numbers Roman Numerals Numbers Roman Numerals
1I21XXI
2II22XXII
3III23XXIII
4IV24XXIV
5V25XXV
6VI26XXVI
7VII27XXVII
8VIII28XXVIII
9IX29XXIX
10X30XXX
11XI31XXXI
12XII32XXXII
13XIII33XXXIII
14XIV34XXXIV
15XV35XXXV
16XVI36XXXVI
17XVII37XXXVII
18XVIII38XXXVIII
19XIX39XXXIX
20XX40XL

More information:

Wikipedia (Roman numerals): https://en.wikipedia.org/wiki/Roman_numerals

Convert Numbers to Roman Numerals with Python:

def transform_number_to_roman_numeral(number):
    roman_value_list = [1000, 900, 500, 400, 100, 90, 50, 40, 10, 9, 5, 4, 1]
    roman_char_list = ["M", "CM", "D", "CD", "C", "XC", "L", "XL", "X", "IX", "V", "IV", "I"]
    res = ''
    for i in range(len(roman_value_list)):
        while number >= roman_value_list[i]:
            number -= roman_value_list[i]
            res += roman_char_list[i]
    return res


number_input = 987
roman_numeral_output = transform_number_to_roman_numeral(number_input)
print('number {0} equal to:{1}'.format(number_input, roman_numeral_output))

-------------------
number 987 equal to:CMLXXXVII