d2jsp
Log InRegister
d2jsp Forums > Off-Topic > Computers & IT > Programming & Development > Any Cse Majors Around?
Prev123457Next
Add Reply New Topic New Poll
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Sep 14 2013 07:18pm
Quote (Ghot @ Sep 14 2013 05:30pm)
/e  Try multiplying XIV x VIII on a piece of paper, showing all the work.

no problem:


Quote (Ghot @ Sep 14 2013 05:30pm)
binary, octal, decimal, hex are just diff base numbering systems...there are normal computer functions (equations) to convert them....with Roman Numerals you can't do it that simply.
There are libraries for conversion between most of the common bases, and there are libraries for conversion between roman numerals and base 10...

Yes roman numerals are inefficient but there is no fundamental difference.

This post was edited by Azrad on Sep 14 2013 07:23pm
Member
Posts: 105,141
Joined: Apr 25 2006
Gold: 10,475.00
Sep 14 2013 07:23pm
No you cheated...you juust did that in your head, like I would...like the Romans did.

Do it in Basic


/e ...and yes I know there are conversion tables...he wants to do it on a comp though.

This post was edited by Ghot on Sep 14 2013 07:25pm
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Sep 14 2013 07:24pm
Quote (Ghot @ Sep 14 2013 06:23pm)
No you cheated...you juust did that in your head, like I would...like the Romans did.

Do it in Basic


that is it, that is how multiplication was done back in the Roman and Greek days... By drawing a grid and counting the squares/dots. In fact that is why we call it "squaring" a number when we multiply it with itself, they made a square grid and counted the dots.

This post was edited by Azrad on Sep 14 2013 07:25pm
Member
Posts: 105,141
Joined: Apr 25 2006
Gold: 10,475.00
Sep 14 2013 07:25pm
Quote (Azrad @ Sep 14 2013 09:24pm)
that is it, that is how multiplication was done back in the Roman and Greek days... By drawing a grid and counting the squares/dots.



Right, now do it in Basic...with Roman Numerals for Inputs


/e ...and you'll end up with exactly what I told him...you'll need an array, then a ton of if/then statements and a lot a String manipulation :)

This post was edited by Ghot on Sep 14 2013 07:27pm
Member
Posts: 28,331
Joined: Jun 9 2007
Gold: 11,700.00
Sep 14 2013 07:26pm
Quote (Ghot @ 15 Sep 2013 01:16)
Let me repeat...what did the OP ask for  ^^
...


after post #8 is was more a less a discussion/argumentation about numbers and what those are
unfortunately most people do not understand that concept and seemingly don't care
since we have pocket calculators (physical ones or virtual ones) and computers
while i accept that for the majority of people
but those dealing with computer hardware or software in a professional capacity
(ie study it for some purpose) really should know

Quote (Ghot @ 15 Sep 2013 01:25)
Right, now do it in Basic...with Roman Numerals for Inputs


/hint the grid was their computer

and what happens with decimal numbers? you don't see the 'electronic' grid because you do not want to

This post was edited by brmv on Sep 14 2013 07:29pm
Member
Posts: 105,141
Joined: Apr 25 2006
Gold: 10,475.00
Sep 14 2013 07:27pm
Quote (brmv @ Sep 14 2013 09:26pm)
after post #8 is was more a less a discussion/argumentation about numbers and what those are
unfortunately most people do not understand that concept and seemingly don't care
since we have pocket calculators (physical ones or virtual ones) and computers
while i accept that for the majority of people
but those dealing with computer hardware or software in a professional capacity
(ie study it for some purpose) really should know



Just in your mind lol
Member
Posts: 105,141
Joined: Apr 25 2006
Gold: 10,475.00
Sep 14 2013 07:28pm
I answered him in post #6

/e Coz this ain't general chat ^^

This post was edited by Ghot on Sep 14 2013 07:30pm
Member
Posts: 10,812
Joined: Oct 15 2009
Gold: Locked
Warn: 20%
Sep 14 2013 07:30pm
Quote (Ghot @ Sep 14 2013 06:25pm)
/e  ...and you'll end up with exactly what I told him...you'll need an array, then a ton of if/then statements and a lot a String manipulation  :)

that is how you convert from base 10 to base 2 as well (you must use logical operators).
Member
Posts: 105,141
Joined: Apr 25 2006
Gold: 10,475.00
Sep 14 2013 07:32pm
Quote (Azrad @ Sep 14 2013 09:30pm)
that is how you convert from base 10 to base 2 as well (you must use logical operators).



Right the difference is...they have functions in all comp languages to do that...they don't for Roman Numerals...which is prolly why he got this as a homework assignment :)
Member
Posts: 28,331
Joined: Jun 9 2007
Gold: 11,700.00
Sep 14 2013 07:33pm
Quote (Ghot @ 15 Sep 2013 01:25)
Right, now do it in Basic...with Roman Numerals for Inputs
/e  ...and you'll end up with exactly what I told him...you'll need an array, then a ton of if/then statements and a lot a String manipulation  :)


how do you multiple two 500 digit decimal numbers in basic?

Quote (Ghot @ 15 Sep 2013 01:32)
Right the difference is...they have functions in all comp languages to do that...they don't for Roman Numerals...which is prolly why he got this as a homework assignment  :)


not in basic assembly languages, there are often libraries of routines/macros you can use but you definitely have to understand what you want to do

This post was edited by brmv on Sep 14 2013 07:36pm
Go Back To Programming & Development Topic List
Prev123457Next
Add Reply New Topic New Poll