C59D signed hex to Binary/Octal/Decimal?

  • Thread starter nwilkins259
  • Start date
In summary, to convert the signed hex number C59D to Binary/Octal/Decimal, the binary number is 1100 0101 1001 1101, the decimal number is -14947, and the octal number is -35145. It is important to convert to two's complement form before converting to octal.
  • #1
nwilkins259
9
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
  • #2
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).
 

1. What is the process for converting a C59D signed hex number to binary?

The process for converting a C59D signed hex number to binary involves breaking the hex number into individual digits, converting each digit to its binary equivalent, and then combining the binary digits to form the final binary representation of the number.

2. Can a C59D signed hex number be converted directly to octal without first converting to binary?

Yes, a C59D signed hex number can be converted directly to octal without first converting to binary. This is because octal and hexadecimal are both base-8 number systems, so the conversion can be done by grouping the hexadecimal digits into sets of three and converting them to their octal equivalents.

3. How do you represent a negative C59D signed hex number in decimal?

To represent a negative C59D signed hex number in decimal, you would first convert the hex number to binary and then use the two's complement method to find the decimal equivalent. This involves flipping all the binary digits and adding 1 to the result.

4. Is there a shortcut for converting a C59D signed hex number to decimal?

Yes, there is a shortcut for converting a C59D signed hex number to decimal. Since hex numbers can be written in groups of 4 bits, you can simply group the hex digits into sets of 4 and convert them to their decimal equivalents. This method is known as the binary-coded decimal (BCD) method.

5. What is the maximum decimal number that can be represented by a C59D signed hex number?

The maximum decimal number that can be represented by a C59D signed hex number is 51,405 in decimal. This is because a signed hex number can represent numbers from -32,768 to 32,767 in decimal, and C59D is equivalent to 20,317 in decimal. Therefore, the range of numbers that can be represented is from -20,317 to 31,405, with 0 being the midpoint.

Similar threads

Replies
4
Views
941
  • Engineering and Comp Sci Homework Help
Replies
10
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
1
Views
10K
  • Engineering and Comp Sci Homework Help
Replies
7
Views
2K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
1K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
10K
  • Engineering and Comp Sci Homework Help
Replies
5
Views
2K
  • Computing and Technology
Replies
4
Views
778
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
Back
Top