The document discusses different number base systems including binary, decimal, octal, and hexadecimal. It provides the following information:
- The binary system uses two digits, 0 and 1, and has a base of 2. Decimal is base 10 and uses digits 0-9.
- Converting between decimal and binary involves repeatedly dividing the number by 2 and recording the remainders as binary digits.
- Octal is base 8 using digits 0-7. Hexadecimal is base 16 using digits 0-9 and A-F.
- Rules for addition, subtraction, and multiplication are provided for binary, octal, and hexadecimal number systems. Conversion between different bases and number systems is also covered.
2. THE BINARY SYSTEM
The binary system, also called base two, has just two states usually called ON
and OFF or 0 and 1. The binary system has just two symbols, 1 and 0. when
dealing with number bases, it is important to put the base of the Number
being used. If no subscript is being used, then it is assumed that base 10 is
being applied.
What is the Decimal Number System?
This number system is widely used in computer applications. It is also
called the base-10 number system which consists of 10 digits, such as,
0,1,2,3,4,5,6,7,8,9. Each digit in the decimal system has a position and every
digit is ten times more significant than the previous digit. Suppose, 25 is a
decimal number, then 2 is ten times more than 5. Some examples of decimal
numbers are:-
(12)10, (345)10, (119)10, (200)10, (313.9)10
3. Each value in this number system has the place value of power 10. It
means the digit at the tens place is ten times greater than the digit at
the unit place. Let us see some more examples:
(92)10 = 9×101+2×100
(200)10 = 2×102+0x101+0x100
The decimal numbers which have digits present on the right side of the decimal
(.) denote each digit with decreasing power of 10. Some examples are:
(30.2)10= 3×101+0x100+2×10-1
(212.367)10 = 2×102+1×101+2×100+3×10-1+6×10-2+7×10-3
6. CONVERSION OF BINARY TO DECIMAL
In this conversion, a number with base 2 is converted into number with base 10. Each
binary digit here is multiplied by decreasing power of 2.
Example:
Convert (11011)2 to decimal number.
We need to multiply each binary digit with the decreasing power of 2. That is;
4 3 2 1 0
1 1 0 1 12
(1×24) + (1×23) + (0x22) + (1×21) + (1×20)
= 16 + 8 + 0 + 2 + 1
= 27
Therefore, (11011)2 = (27)10
7. Example 2:
Convert (110011)2 to decimal number.
We need to multiply each binary digit with the decreasing power of 2. That is;
5 4 3 2 1 0
1 1 0 0 1 12
= (1×25) + (1×24) + (0×23) + (0x22) + (1×21) + (1×20)
= 32 + 16 + 0 + 0 + 2 + 1
= 5110
8. ADDITION OF BINARY
There are four rules of binary addition, which are;
0 + 0 = 0
0 + 1 = 1
1 + 0 = 1
1 + 1 = 10 (write 0, carry 1 over)
EXAMPLE 1:
1 1 1 0 1 0
+ 1 1 0 1 1
1 0 1 0 1 0 12
EXAMPLE 2:
1 0 1
+ 1 0 1
1 0 1 02
9. SUBTRACTION OF BINARY
There are four rules of binary subtraction, which are;
0 - 0 = 0
0 - 1 = 1 (borrow 1 from previous column)
1 - 0 = 1
1 - 1 = 0
EXAMPLE 1:
1 1 1 0 1 0
- 1 0 1 0 1
1 0 0 1 0 12
EXAMPLE 2:
1 0 1 0 0
- 1 1 1 1
0 1 0 1
10. MULTIPLICATION OF BINARY
Multiplication in Binary is carried out the same way as it is in Decimal.
Example:
Evaluate 11010 x 1011
1 1 0 1 0
x 1 0 1 1
1 1 0 1 0
1 1 0 1 0
0 0 0 0 0
1 1 0 1 0 _
____ 1 0 0_0_ 1_1_1 1_0___
11. OTHER NUMBER BASES
OCTAL
Octal is base 8. in octal, we have eight digits: 0,1,2,3,4,5,6,7.
Conversions in octal base is carried out the same way as the conversion in
decimal and binary.
Example:
Convert 40 to Octal
8 40
8 5 r 0 40÷8 = 5 remainder 0
8 0 r 5 5÷8 = 0 remainder 5
Answer= 508
13. ADDITION OF OCTAL
Note: when the number crosses 7, it overturns then keep 1 to the previous
column
Example:
2 4 58
+ 1 68
2 6 38
2 3 68
+ 1 2 78
3 6 58
14. SUBTRACTION OF OCTAL
Example:
1 4 68
- 5 78
6 78
NOTE:
7 is greater than 6
Borrow 1 which is 8 from the previous column
Add 8 to 6 which is 14
The same method is being repeated
15. ASSIGNMENT
Convert the following binary numbers to decimal number
1012
10112
101012
Convert the following base ten numbers to binary number
510
7810