Tutor HuntResourcesComputer Science Resources
Computer Science
Sign and Magnitude numbers
How to represent positive and negative numbers using Sign and Magnitude
Sign and Magnitude
There are different ways to represent negative numbers
in binary. One of which is sign and magnitude representation. This is very
similar to unsigned, whole integers that we have looked at before. The
difference this time is that the most significant bit becomes a sign bit. 0
means a positive number, 1 means a negative number.Example:
+/-
64
32
16
8
4
2
1
0
0
0
1
0
1
1
0
= 22
+/-
64
32
16
8
4
2
1
1
0
0
1
0
1
1
0
= -22
+/-
64
32
16
8
4
2
1
0
1
1
0
1
0
1
0
= 106
+/-
64
32
16
8
4
2
1
1
1
1
0
1
0
1
0
= -106
Questions:
Convert the following numbers from denary to binary using sign and magnitude representation:1. -93 2. 39 3. -78 4. -100 5. -18 Convert the following numbers from sign and magnitude representation to denary:1. 1001 0001 2. 1011 1101 3. 1111 1111 4. 0100 0110 5. 1011 1001
Convert the following numbers from denary to binary using sign and magnitude representation:1. -93 2. 39 3. -78 4. -100 5. -18 Convert the following numbers from sign and magnitude representation to denary:1. 1001 0001 2. 1011 1101 3. 1111 1111 4. 0100 0110 5. 1011 1001
