Najam
Najam

Reputation: 21

How are the values 515 and -515 (base 10) represented in 16 bit excess notation? How are they?

How are the values 515 10 and -51510 represented in 16 bit excess notation?

Upvotes: 0

Views: 2866

Answers (1)

paxdiablo
paxdiablo

Reputation: 881633

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.

Upvotes: 2

Related Questions