C59D signed hex to Binary/Octal/Decimal?

  • Thread starter Thread starter nwilkins259
  • Start date Start date
AI Thread Summary
The signed hex number C59D converts to binary as 1100 0101 1001 1101 and to decimal as -14947. The octal conversion is causing confusion, with one user incorrectly calculating it as 142635, which should be a negative value. To find the correct octal representation, the two's complement of the binary number is needed, which is 0011 1010 0110 0011. Dividing this into groups of three yields an octal result of -35145.
nwilkins259
Messages
9
Reaction score
0
Stuck on a homework question

Convert the signed hex number C59D to Binary/Octal/Decimal

Binarys easy = 1100 0101 1001 1101
Decimal i got = -14947
but I am not sure about octal, I am getting 142635, which can't be right because its a positive value, the answer should be a (signed) neg number between 400000-777777

any ideas?
 
Physics news on Phys.org
nwilkins259 said:
Stuck on a homework question

Convert the signed hex number C59D to Binary/Octal/Decimal

Binarys easy = 1100 0101 1001 1101
Decimal i got = -14947
but I am not sure about octal, I am getting 142635, which can't be right because its a positive value, the answer should be a (signed) neg number between 400000-777777

any ideas?

Find the two's complement form of your binary number, which is 0011 1010 0110 0011. Divide into groups of three binary digits, starting on the right. I get 35143 (really, -35145).
 
Back
Top