LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Roman Numeral Conversion (https://www.linuxquestions.org/questions/slackware-14/roman-numeral-conversion-4175482477/)

1337_powerslacker 10-30-2013 10:59 AM

Quote:

Originally Posted by allend (Post 5054227)
Seems to be an age-appropriate solution. :)

It's not nice to call people old.

Didier Spaier 10-30-2013 01:03 PM

Quote:

Originally Posted by szboardstretcher (Post 5055235)
I'd like to mention that the numerals that we use today are not Arabic, although that is what everyone mistakenly believes. They are Hindu numerals.

Yes. That's clearly stated in the Wikipedia article
Quote:

An Indian mathemetician invented it 800 years before the Arabs are claimed to have.
Well, Muḥammad ibn Mūsā al-Khwārizmī never made that claim, nor Arabs AFAIK. That's actually European that called them Arab numerals, because they were brought to them by someone they assumed was an Arab. By he way, even nowadays I don't think that Iranian people consider themselves as Arabs at all, but that's another topic ;)

volkerdi 10-30-2013 04:06 PM

Quote:

Originally Posted by Didier Spaier (Post 5055349)
Well, Muḥammad ibn Mūsā al-Khwārizmī never made that claim, nor Arabs AFAIK. That's actually European that called them Arab numerals, because they were brought to them by someone they assumed was an Arab. By he way, even nowadays I don't think that Iranian people consider themselves as Arabs at all, but that's another topic ;)

Nope, Iranians are Persian. And they speak Farsi, not Arabic.

tronayne 10-30-2013 04:16 PM

OK, folk, take a look at the article at Princeton University (http://www.princeton.edu/~achaney/tm..._numerals.html. Developed by Indian mathematicians, passed on the Persian mathematicians in India and passed on to Arabs further west, entering Europe in the Middle Ages (possibly via the Moors in Spain, I've read elsewhere but don't know that for sure).

Skaperen 10-30-2013 04:23 PM

At least it's a good thing the Romans did not invent the internet. I would not want to have IP addresses like "XXIV.VIII.CCXXLI.CVI".

volkerdi 10-30-2013 04:26 PM

Quote:

Originally Posted by Skaperen (Post 5055470)
At least it's a good thing the Romans did not invent the internet. I would not want to have IP addresses like "XXIV.VIII.CCXXLI.CVI".

Even worse when we upgrade to IPvVI.

fschiff 11-01-2013 10:19 PM

Quote:

Originally Posted by brianL (Post 5054574)
What did the Romans ever do for us?

Concrete

tronayne 11-06-2013 09:03 AM

It's been fun, thanks for all the suggestions (and tongue-firmly-in-cheek suggestions, too!).

Got 'er in place, everybody loves it, all is well that ends.

miriam-e 03-27-2016 11:03 AM

I enjoyed reading this set of answers, but was interested in using sed or awk, which are available in all Linux distros. The answer by qweasd was ingenious, however I kept searching on the net and found the conversion written in 83 languages!!! Holy cow!
https://www.rosettacode.org/wiki/Roman_numerals/Decode

Perhaps this will be useful to others.


All times are GMT -5. The time now is 05:04 PM.