RAN Converter

Roman-Arabic Number Converter 

Home

Programs


You are visitor:

StatCounter - Free Web Tracker and Counterweb stats

THIS SITE IS MOVED TO:
http://aleksandarsabo.freehostia.com

 

 

Program

Program to convert numbers from Roman to Arabic
style.


download:

program [222k]

source (Turbo Delphi) [253k]



Idea for program

I find on the net, algoritham with open code by

Valery Ochkov, and I create this litle program. I put here the source-code and algorithams for this program. Program was created in Turbo Delphi.

Algorithams:

About the Roman Numerals

Roman Numerals was the standard numbering system and method of Arithmetic in Ancient Rome and Europe until about 900 AD, when the Arabic Numbering System, which was originated by the Hindu's, came into use. The concept of "Zero" did not exist in Europe until after 1000AD; thus, there was no roman numeral symbol for "Zero", and only seven numeral-characters were used.

Here are the basics:

I

Thus I means 1, II means 2, III means 3. However, four strokes seemed like too many....

V

V is symbol for 5. Placing I in front of the V mean substruct 1 from 5 and placing I after mean add 1 to 5. So IV means 4. After V comes a series of additions - VI means 6, VII means 7, VIII means 8.

X

X means 10. But wait — what about 9? Same deal. IX means to subtract I from X, leaving 9. Numbers in the teens, twenties and thirties follow the same form as the first set, only with X's indicating the number of tens. So XXXI is 31, and XXIV is 24.

L

L means 50. Based on what you've learned, I bet you can figure out what 40 is. If you guessed XL, you're right = 10 subtracted from 50. And thus 60, 70, and 80 are LX, LXX and LXXX.

C

C stands for centum, the Latin word for 100. A centurion led 100 men. We still use this in words like "century" and "cent." The subtraction rule means 90 is written as XC. Like the X's and L's, the C's are tacked on to the beginning of numbers to indicate how many hundreds there are: CCCLXIX is 369.

D

D stands for 500. As you can probably guess by this time, CD means 400. So CDXLVIII is 448. (See why we switched systems?)

M

M is 1,000. You see a lot of Ms because Roman numerals are used a lot to indicate dates. For instance, this page was written in the year of Nova Roma's founding, 1998 CE (Common Era; Christians use AD for Anno Domini, "year of our Lord"). That year is written as MCMXCVIII. But wait! Nova Roma counts years from the founding of Rome, ab urbe condita. By that reckoning Nova Roma was founded in 2751 a.u.c. or MMDCCLI.

For larger numbers thay used the same numeral characters and putting a horizontal line over them. That line meant number multiply by 1.000. A horizontal line under them meant number multiply by 1.000.000.

Today Roman Numerals are in use to indicate the order of rulers or ships who share the same name (i.e. Queen Elizabeth II) and for dates. So numbers greater than 3999 are not repressenting in Roman Numerals and there's no need for them.