How are the values 515 10 and -51510 represented in 16 bit excess notation?
views:
31answers:
1
+2
A:
From the details here:
Excess-N notation is simply a way of representing number where N
is the zero point. You simply subtract the zero point from the encoded numbers to get the real numbers.
For a 16-bit excess representation, the zero point is 215 or 32768.
Therefore, 515
would be represented as 32768 + 515
, which is 3328310, 0x8203 or binary 1000 0010 0000 0011
.
Similarly, -515 would be represented as 32768 - 515
, which is 3325310, 0x7dfd or binary 0111 1101 1111 1101
.
paxdiablo
2010-07-15 03:06:04