d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Any Cse Majors Around?
1237Next
Add Reply New Topic New Poll
Member
Posts: 18,413
Joined: Sep 18 2005
Gold: 4,827.00
Sep 14 2013 02:18pm
I need some basic help with converting roman numerals to ASCII code

Willing to offer fg for someone giving me a better understanding on the subject.

post here or shoot me a pm thanks
Member
Posts: 15,942
Joined: Aug 11 2007
Gold: 8,221.76
Member
Posts: 18,413
Joined: Sep 18 2005
Gold: 4,827.00
Sep 14 2013 02:27pm
Quote (noob_whacker @ Sep 14 2013 04:21pm)


just brings you too a question someone asked, thanks though.
Member
Posts: 11,637
Joined: Feb 2 2004
Gold: 434.84
Sep 14 2013 03:02pm
If you know the simple rules for roman numerals it would be simple to write a conversion from roman number to decimal and then from decimal to it's corresponding ASCII code.

And no, I'm not going to do your homework for you. Have some fucking self-respect and learn something.
Member
Posts: 18,413
Joined: Sep 18 2005
Gold: 4,827.00
Sep 14 2013 03:38pm
Quote (rockonkenshin @ Sep 14 2013 05:02pm)
If you know the simple rules for roman numerals it would be simple to write a conversion from roman number to decimal and then from decimal to it's corresponding ASCII code.

And no, I'm not going to do your homework for you. Have some fucking self-respect and learn something.


No where in this post did I ask for you to do my homework for me, i simply asked for some help to get a better understanding on how to do it. So sir, have some fucking self-respect and learn to fucking read
Member
Posts: 105,141
Joined: Apr 25 2006
Gold: 10,475.00
Sep 14 2013 03:48pm
there is no "mathematical" relationship between Roman numerals and Decimal or ASCII, prolly just have to build an array, and a bunch of if/then and string statements ( for the letters location in the line)...unlike most numbers Roman numerals aren't numbers, they are letters.

/e Converting roman numerals to numbers is like converting two point seven two five ...to a number.





This post was edited by Ghot on Sep 14 2013 04:05pm
Member
Posts: 18,413
Joined: Sep 18 2005
Gold: 4,827.00
Sep 14 2013 05:11pm
Quote (Ghot @ Sep 14 2013 05:48pm)
there is no "mathematical" relationship between Roman numerals and Decimal or ASCII, prolly just have to build an array, and a bunch of if/then and string statements ( for the letters location in the line)...unlike most numbers Roman numerals aren't numbers, they are letters.

/e  Converting roman numerals to numbers is like converting two point seven two five ...to a number.



http://i.imgur.com/rDujqYY.jpg


cool thanks man
Member
Posts: 28,331
Joined: Jun 9 2007
Gold: 11,700.00
Sep 14 2013 06:02pm
Quote (Ghot @ 14 Sep 2013 21:48)
there is no "mathematical" relationship between Roman numerals and Decimal or ASCII, prolly just have to build an array, and a bunch of if/then and string statements ( for the letters location in the line)...unlike most numbers Roman numerals aren't numbers, they are letters.
/e  Converting roman numerals to numbers is like converting two point seven two five ...to a number.
http://i.imgur.com/rDujqYY.jpg


while what you are saying sounds reasonable but is technically not correct
what is a number? how is it presented?
there are plenty different 'number' or 'numberal' systems, a number is the same number regarding of presentation
could be with roman numerals, greek numerals, hebrew numerals (to name just three which are still used at times)
or could be binary, octal, hex representation as commonly used in programming

you table is reasonable as well and makes sense for a simple standard conversion (and can be used as standard convention)
but eg MIM and XIIII have been used in roman and medieval times (before the arabs taught the europeans to use the indian number system), so technically there are variants
Member
Posts: 105,141
Joined: Apr 25 2006
Gold: 10,475.00
Sep 14 2013 06:13pm
Quote (brmv @ Sep 14 2013 08:02pm)
while what you are saying sounds reasonable but is technically not correct
what is a number? how is it presented?
there are plenty different 'number' or 'numberal' systems, a number is the same number regarding of presentation
could be with roman numerals, greek numerals, hebrew numerals (to name just three which are still used at times)
or could be binary, octal, hex representation as commonly used in programming

you table is reasonable as well and makes sense for a simple standard conversion (and can be used as standard convention)
but eg MIM and XIIII have been used in roman and medieval times (before the arabs taught the europeans to use the indian number system), so technically there are variants


True but since we are talking about computer programs...we can only do two kinds of manipulations...regular numbers...and strings...with Roman Numerals we have to do both.
Member
Posts: 28,331
Joined: Jun 9 2007
Gold: 11,700.00
Sep 14 2013 06:24pm
Quote (Ghot @ 15 Sep 2013 00:13)
True but since we are talking about computer programs...we can only do two kinds of manipulations...regular numbers...and strings...with Roman Numerals we have to do both.


here you go again ;)

actually just because there is a standard conversion for 'decimal' numbers in the library of most computer languages to the character code representation (it's not always ascii either) doesn't mean that there is no conversion going on - don't people learn assembly languages anymore?
Go Back To Programming & Development Topic List
1237Next
Add Reply New Topic New Poll