Simple hexadecimal addition question

AI Thread Summary
To add the hexadecimal numbers x1100 and x3301, the correct sum is x4401. Attempts to convert to binary and back, or using a calculator, also yield x4401. The discussion highlights that hex addition follows similar principles to decimal addition, with carries for sums equal to or exceeding 16. Despite confirming the answer through decimal conversion, the original poster received an incorrect response from their homework platform, suggesting a potential error in the input numbers. It’s advised to double-check the original values before assuming the instructor is wrong.
neshepard
Messages
67
Reaction score
0

Homework Statement


I have to hex numbers, x1100 and x3301, that I want to add. I tried to convert them to binary and and them, then convert back to hex-wrong. Tried a straight 1100+3301 addition with the answer being hex, and even used my ti-89 to add them, it can do conversions so why not.


Homework Equations





The Attempt at a Solution


For the conversion to binary and back I got x4401- told me it's wrong.
For the straight hex addition I got x4402-told me it's wrong.
For the ti-89 I got x1131-and of course it's wrong.

How do I add these and what is the answer?
 
Physics news on Phys.org
You add them like you would in base 10, only using base 16 symbols and doing carries for sums >= 16. Your problem is very simple though, since hex symbols and carries >=16 don't occur:

Code:
1100
3301
-----
4401

Converting to binary works similarly, with base 2 symbols and carries for sums >=2:

Code:
  1000100000000
 11001100000001
 --------------
100010000000001


0b100010000000001 = 0x4401
 
The calculator in Windows does it OK. Switch it to Scientific mode.

The answer is 4401 which you can confirm by converting everything to decimal and adding in decimal
1100 hex is 4352 decimal
3301 hex is 13057 decimal
decimal total =17409 which is 4401 in hex.
 
Thanks. I got that answer and webassign said it was wrong so I will find out from the professor what the deal is.
 
vk6kro said:
The calculator in Windows does it OK. Switch it to Scientific mode.

The answer is 4401 which you can confirm by converting everything to decimal and adding in decimal
1100 hex is 4352 decimal
3301 hex is 13057 decimal
decimal total =17409 which is 4401 in hex.

I added them in hex, got 4401 hex, and converting to decimal, 17409 decimal. Same as you. And 100010000000001 binary.

To the OP: If the webassign solution is telling you it's wrong, well, then, it certainly wouldn't be the first time an instructor got the answer wrong! However, before you accuse him of getting a wrong answer, please make sure you copied the original two numbers correctly!
 

Similar threads

Replies
6
Views
2K
Replies
2
Views
11K
Replies
10
Views
2K
Replies
8
Views
5K
Replies
2
Views
3K
Replies
5
Views
4K
Replies
1
Views
4K
Replies
7
Views
2K
Back
Top