Professional Documents
Culture Documents
Integer Representations 2 Comparing Handout
Integer Representations 2 Comparing Handout
-12710
Unsigned
Sign
Magnitude
Ones
Complement
Twos
Complement
Bias
In this competition, well use 8-bit numbers. Now lets get started!
Round 1 - Negation
its
Flip all b
1
d
d
a
and
Subtract
from 12710
-1
27
10
Oh, dear! It looks like Unsigned cant negate. But this competition has only
started, so Unsigned still has a chance of catching up to the others.
Round 2 - Zeroes
0000 0000
1000 0000
0000
0000
0000
1111
1111
0000
0000 0000
0111 1111
710
Now things are getting interesting! Unsigned and Twos Complement get two points each
for having one zero and being able to represent zero with all zero bits. Biass zero isnt all
zero bits, but it gets a point for having only one zero. And though they have two zeroes,
Sign Magnitude and Ones Complement get a point for having a zero of all zero bits.
-12