Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Jun 9th, 2006, 1:28 PM   #1
Edgar
Programmer
 
Edgar's Avatar
 
Join Date: May 2006
Location: Bathroom
Posts: 43
Rep Power: 0 Edgar is on a distinguished road
Hexadecimal

Can you guys give me a had with this addition, I CAN'T FIGURE IT OUT

AE

2A
__
Edgar is offline   Reply With Quote
Old Jun 9th, 2006, 1:36 PM   #2
NSchnarr
Newbie
 
Join Date: May 2006
Posts: 28
Rep Power: 0 NSchnarr is on a distinguished road
D8,

Try using calculator and switching it to scientific mode.
AE = 174
2A = 42
D8 = 216

As for the actual way to add hex numbers, I cant remember, but im sure google will help
NSchnarr is offline   Reply With Quote
Old Jun 9th, 2006, 1:55 PM   #3
DaWei
Resident Grouch
 
DaWei's Avatar
 
Join Date: Jun 2005
Posts: 6,453
Rep Power: 10 DaWei is on a distinguished road
Same way you do it in decimal, Edgar, but it isn't drilled into you like that, so it's no fun. You know that 5 + 3 = 8, because you committed it to memory. You can also do it the 'hard way'. Five anna 1 is 6 anna 1 is 7 anna 1 is 8. Same with hex. E + A = 8, carry the 1. If you convert beforehand you have to convert back, which is a pain. So is doing it in the hard way: E anna 1 = F anna 1 = 0 (carry the 1, 10) anna 2 = 11 .... blah blah, BS. For me, the best thing to do is just memorize the stuff and go with it. Since you don't have to live with it on a daily basis before the invention of such calculators, you probably just wanna go that route.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code.
Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers
DaWei is offline   Reply With Quote
Old Jun 9th, 2006, 2:07 PM   #4
Edgar
Programmer
 
Edgar's Avatar
 
Join Date: May 2006
Location: Bathroom
Posts: 43
Rep Power: 0 Edgar is on a distinguished road
Thank You
Edgar is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:34 AM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC