Archive for October, 2014
Binary Lesson 13 – Signed Binary
Posted by delightlylinux in Lessons on October 27, 2014
⌚ October 27, 2014
If we can express signed values, such as +5 and -5, in decimal, can we do so in binary? Indeed we can!
Signed numbers are either positive or negative in value. If the number is preceded by a minus sign, then the number is negative. If no sign is present or if the number is preceded by a plus sign, then the number is positive.
-5 Negative 5 +5 Positive 5 5 Positive 5 (+ symbol omitted) -100 Negative 100 8 Positive 8
(The value zero has no sign because nothing is nothing. Therefore, +0 and -0 are pointless.)
We can express signed numbers in binary in the same way, but there are a few points to be aware of to ensure correct mathematical results.
Ubuntu Family 14.10 Released
Posted by delightlylinux in linux on October 23, 2014
Binary Lesson 12 – One’s Complement and Two’s Complement
Posted by delightlylinux in Lessons on October 13, 2014
⌚ October 13, 2014
One’s complement and two’s complement are two important binary concepts. Two’s complement is especially important because it allows us to represent signed numbers in binary, and one’s complement is the interim step to finding the two’s complement.
Two’s complement also provides an easier way to subtract numbers using addition instead of using the longer, more involving subtraction method discussed in Lesson 10.
We will save the two’s complement subtraction for another lesson, but here, we will look at what these terms mean and how to calculate them.