Signed Bit Notation
First bit indicates if a number is positive or negative
This has some drawbacks
Reduces the range which we can represent
There are two representations for zero, postive zero and negative zero.
Two's Complement Notation
Invert the number and add one
-96 0110 0000
INV 1001 1111
+1 1010 0000
The same process for converting back the way
Thursday, 19 August 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment