Week 2 - Number Systemssadffff
Week 2 - Number Systemssadffff
Week 2 - Number Systemssadffff
1
Number System
Number System
In mathematics, a 'number system' is a set of numbers, with one or more operations that
can perform like addition and multiplication.
Course Module
1 1 1 1
2 2 2
3 3 3
4 4 4
5 5 5
6 6 6
7 7 7
8 8 8
9 9
10 A
B
C
D
E
F
significant bit or LSB, and the left-hand bit being the most significant bit or MSB. Below is
the representation of a binary number.
Table 1.0 Representation of a binary number
28 27 26 25 24 23 22 21 20
256 128 64 32 16 8 4 2 1
From the given table the value of number system increases by the power of two.
Step 2: Add all decimal digit value where the binary digit value is 1
64 + 16 + 2 + 1 = 83
Step 3: add the base 10 in the final answer
8310
Another way to convert is to directly get the nth power of a binary number then add all the
decimal numbers to get the final results. See figure 1.0 for example
Course Module
Figure 1.0 Convert 1010011 base 2 to base 10
1. Group the given binary value into three starting from the right. Note that you have to
pad the digits to three in order to meet the requirement of 3 per group.
2. Add 4,2 and 1 underneath each binary number per group.
3. Add the octal value of a number system represented by 1’s
Example: Convert 1010011 to octal/ base 8
4. Then read the final answer from right to left.
Step 1: Group the given binary value into three starting from the right
1|010|011
Note that we have to left pad the value to three therefore the grouped value
is:
001 | 0 1 0 | 0 1 1– The zero’s in blue text are the added value
Step 2: Add 4,2 and 1 underneath the binary value
001 | 0 1 0 | 0 1 1
4 21 | 4 2 1 | 4 2 1
Step 3: Add all octal where the number system is 1’s. Note all text in red in step 2 are
the octal value with 1’s
4 21 | 4 2 1 | 4 2 1
1 2 3
Computing Fundamentals
5
Number System
Step 1: Group the given binary value into four starting from the right
1 01 |0 011
Note that we have to left pad the value to four therefore the grouped value is:
01 0 1 | 0 0 1 1– The zero’s in blue text are the added value
Step 2: Add 8,4,2 and 1 underneath the binary value
01 0 1 | 0 0 1 1
84 2 1 | 8 4 2 1
Step 3: Add all hexadecimal value where the number system is 1’s. Note all text in red in
step 2 are the hexadecimal value with 1’s
Course Module
84 2 1 | 8 4 2 1
5 3
Step 4: Read the value from right to left.
53
Therefore, 10100112= 5316
Decimal system
The decimal (base ten) numeral system has ten possible values (0,1,2,3,4,5,6,7,8, or 9) for
each place-value.
1. Write the decimal number as the dividend. Then add a slash (/) and write the base of the
destination system (in our case, "2" for binary) as the divisor outside the curve of the division
symbol.
2. Divide the decimal number to binary number and write the remainder as 0 or 1. Continue to
divide until you reach the last digit
3. Read the remainder upward from bottom to top.
Note: In converting decimal to binary every remainder that is greater than to zero is consider one.
Since binary only accept two values which is 0 and 1.
1
1
1
0
0
1
1
1. Divide the given decimal value to 8 until we reach 0 value. To get the remainder multiple the
quotient by 8 minus the given number. The result from the subtraction is the remainder.
2. Read the values upward
Course Module
25-24 = 1
Remainder is 1
Remainder = 3
Final answer is 316
Therefore: 20610= 3168
1. Divide the given decimal value to 16 until we reach 0 value. To get the remainder multiple the
quotient by 16 minus the given number. The result from the subtraction is the remainder.
2. Read the values upward
Octal system
The Octal (base t8) numeral system has 8 possible values (0,1,2,3,4,5,6,7) for each place-
value. Below is the value of octal to binary.
Octal 0 1 2 3 4 5 6 7
value
Binary 000 001 010 011 100 101 110 111
Value
1. Get the binary values of the given octal per digit. Refer to the table above for the binary value
2. Readthe answerdownward
Example: Convert 206 to binary/ base 2
Step 1,2: Get the binary value
Given 4 2 1 = 7 or also known as base 8
2 010
0 000
6 110
Therefore: 2068= 010 000 1102
128 + 0 + 6 = 134
Therefore: 2068 = 13410
Course Module
Given 4 2 1 = 7 or also known as base 8
2 010
0 000
6 110
8421 84218421
0|1000 |0110
0 86
Therefore: 2068 = 8616
Hexadecimal system
The hexadecimal (base 16) numeral system has 16 possible values (0,1,2,3,4,5,6,7,8,9 and
A,E,C,D,E,F) for each place-value. Below is the value of hexadecimal to binary.
Hexadecimal 0 1 2 3 4 5 6 7 8 9 A B C D E F
value
Binary Value 0000 0001 0010 0011 0100 0101 0110 0111 1000 1001 1010 1011 1100 1101 1110 1110
512 + 0 + 6 = 518
Therefore: 20616 = 51810
Summary:
A 'number system' is a set of numbers, together with one or more operations, such as addition or
multiplication.
A binary digit is called a bit. There are two possible states in a bit, usually expressed as 0 and 1.
In the binary system, there can be only two choices for this number -- either a "0" or a "1".
Course Module
In the octal system, there can be eight possibilities: "0", "1", "2", "3", "4", "5", "6", "7".
In the decimal system, there are ten different numbers that can enter the digit box: "0", "1",
"2", "3", "4", "5", "6", "7", "8", "9".
In the hexadecimal system, we allow 16 numbers: "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
"A", "B", "C", "D", "E", and "F".
The binary numeral system, or base-2 number system represents numeric values using two
symbols, 0 and 1.
The decimal (base ten) number system, used in mathematics for writing numbers and performing
arithmetic.