3. •Bit - a fundamental unit of
information having just two
possible values, as either of the
binary digits 0 or 1.
•Byte - a unit of digital information
in computing and
telecommunications that most
4. DIGITAL REPRESENTATION
• Within a computer, information is
represented and stored in a
digital binary format.
• The term bit is an abbreviation of
binary digit and represents the
smallest piece of data.
• Humans interpret words and
pictures; computers interpret
only patterns of bits.
5. NUMBERING SYSTEMS
• Number System Base Symbols used
• Binary 2 0,1
• Octal 8 0,1,2,3,4,5,6,7
• Decimal 10 0,1,2,3,4,5,6,7,8,9
• Hexadecimal 16
0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
where A = 10; B = 11; C = 12; D =
21. Use this method to convert
from any base to decimal. Doubling is
used because the given number is of
base 2. If the given number is of a
different base, replace the 2 in the
method with the base of the given
number. For example, if the given number
is in base 37, you would replace the "x 2"
with "x 37". The final result will always be
in decimal (base 10).
25. •Direction: Convert the decimal
numbers shown below to binary.
Perform checking to verify
answers.
1) 19
2) 28
3) 37
Editor's Notes
A bit can have only two possible values, a one digit (1) or a zero digit (0). A bit can be used to represent the state of something that has two states. For example, a light switch can be either On or Off; in binary representation, these states would correspond to 1 and 0, respectively.
Each number system has a base also called a Radix. A decimal number system is a system of base 10; binary is a system of base 2; octal is a system of base 8; and hexadecimal is a system of base 16. What are these varying bases? The answer lies in what happens when we count up to the maximum number that the numbering system
allows. In base 10, we can count from 0 to 9, that is,10 digits.
1 Write down the binary number and list the powers of 2 from right to left. Let's say we want to convert the binary number 100110112 to decimal. First, write it down. Then, write down the powers of two from right to left. Start at 20, evaluating it as "1". Increment the exponent by one for each power. Stop when the amount of elements in the list is equal to the amount of digits in the binary number. The example number, 10011011, has eight digits, so the list, with eight elements, would look like this: 128, 64, 32, 16, 8, 4, 2, 1
2 Write the digits of the binary number below their corresponding powers of two. Now, just write 10011011 below the numbers 128, 64, 32, 16, 8, 4, 2, and 1 so that each binary digit corresponds with its power of two. The "1" to the right of the binary number should correspond with the "1" on the right of the listed powers of two, and so on. You can also write the binary digits above the powers of two, if you prefer it that way. What's important is that they match up.
3 Connect the digits in the binary number with their corresponding powers of two. Draw lines, starting from the right, connecting each consecutive digit of the binary number to the power of two that is next in the list above it. Begin by drawing a line from the first digit of the binary number to the first power of two in the list above it. Then, draw a line from the second digit of the binary number to the second power of two in the list. Continue connecting each digit with its corresponding power of two. This will help you visually see the relationship between the two sets of numbers.
4 Write down the final value of each power of two. Move through each digit of the binary number. If the digit is a 1, write its corresponding power of two below the line, under the digit. If the digit is a 0, write a 0 below the line, under the digit.
Since "1" corresponds with "1", it becomes a "1." Since "2" corresponds with "1," it becomes a "2." Since "4" corresponds with "0," it becomes "0." Since "8" corresponds with "1", it becomes "8," and since "16" corresponds with "1" it becomes "16." "32" corresponds with "0" and becomes "0" and "64" corresponds with "0" and therefore becomes "0" while "128" corresponds with "1" and becomes 128.
5 Add the final values. Now, add up the numbers written below the line. Here's what you do: 128 + 0 + 0 + 16 + 8 + 0 + 2 + 1 = 155. This is the decimal equivalent of the binary number 10011011.
6 Write the answer along with its base subscript. Now, all you have to do is write 15510, to show that you are working with a decimal answer, which must be operating in powers of 10. The more you get used to converting from binary to decimal, the more easy it will be for you to memorize the powers of two, and you'll be able to complete the task more quickly.
1 Write down the binary number. This method does not use powers. As such, it is simpler for converting large numbers in your head because you only need to keep track of a subtotal. The first thing you need to of is to write down the binary number you'll be converting using the doubling method. Let's say the number you're working with is 10110012. Write it down.
2 Starting from the left, double your previous total and add the current digit.Since you're working with the binary number 10110012, your first digit all the way on the left is 1. Your previous total is 0 since you haven't started yet. You'll have to double the previous total, 0, and add 1, the current digit. 0 x 2 + 1 = 1, so your new current total is 1.
3 Double your current total and add the next leftmost digit. Your current total is now 1 and the new current digit is 0. So, double 1 and add 0. 1 x 2 + 0 = 2. Your new current total is 2.
4 Repeat the previous step. Just keep going. Next, double your current total, and add 1, your next digit. 2 x 2 + 1 = 5. Your current total is now 5.
5 Repeat the previous step again. Next, double your current total, 5, and add the next digit, 1. 5 x 2 + 1 = 11. Your new total is 11.
6 Repeat the previous step again. Double your current total, 11, and add the next digit, 0. 2 x 11 + 0 = 22.
7 Repeat the previous step again. Now, double your current total, 22, and add 0, the next digit. 22 x 2 + 0 = 44.
8 Continue doubling your current total and adding the next digit until you've run out of digits. Now, you're down to your last number and are almost done! All you have to do is take your current total, 44, and double it along with adding 1, the last digit. 2 x 44 + 1 = 89. You're all done! You've converted 100110112 to decimal notation to its decimal form, 89.
9 Write the answer along with its base subscript. Write your final answer as 8910 to show that you're working with a decimal, which has a base of 10.
Practice. Try converting the binary numbers 110100012, 110012, and 111100012. Respectively, their decimal equivalents are 20910, 2510, and 24110.