- #1

TranscendArcu

- 285

- 0

## Homework Statement

Write all the possible decimal values (3 of them) of the 8-bit hexadecimal number 0xD1.

## The Attempt at a Solution

So I can write that D1 = D*16

^{1}+ 1 * 16

^{0}= 13*16 + 1 = 209

Can I also say that the most significant bit is reserved for sign? In that case, I think the D would indicate a negative value (is that right? What's the cutoff for positive/negative signed values in hexadecimal?) Thus, I would have: - (1 * 16

^{0}) = -1

The only other interpretation I can think of is to say that D1 is a complement, so I'd have to convert to binary and then convert to decimal. So:

D1 = 1101 0001, then I take all the places where the value is zero and add. Doing so gives: 2 + 4 + 8 + 32 = 46

I also have to add one to 46, I believe. So my answer is 47. Is that so?