NUMBER BASE
DEFINITION:
A number base is a way of writing or representing numbers using the same number. A computer or any digital system works
in a binary manner.
TYPES OF NUMBER SYSTEM
The various types of number system used in a digital system are;
1. Decimal number system.
2. Binary number system.
3. Octal number system.
4. Hexadecimal number system.
DECIMAL NUMBER SYSTEM.
The decimal number system has ten as its base (base 10). It uses various symbols called digit for 10 distinct values (0, 1, 2, 3,
4, 5, 6, 7, 8 and 9) to represent numbers.
The decimal system is a position number system. It has positions for units, tens, hundreds, etc and the position of each digit
conveys the multiplier to be used with the digit.
Example:
275 = 2 x 102 + 7 x 101 + 5 x 100
= 2 x 100 + 7 x 10 + 5 x 1
= 200 + 70 + 5
= 27510
CLASS WORK 1: Represent 128 in decimal number system.
BINARY NUMBER SYSTEM.
The binary number system (base 2) represents values using symbols typically 0 and 1. It is a position number system with a
power of two. In the binary number system, the individual digit represent the coefficient of power 2.
Example:
1910 = 100112
19
2 9 r 1
2 4 r 1
2 2 r 0
2 1 r 0
2 0 r 1
= 100112
100112 = 1 x 24 + 0 x 23 + 0 x 22 + 1 x 21 + 1 x 20
= 1 x 16 + 0 x 8 + 0 x 4 + 1 x 2 + 1 x 1
= 16 + 0 + 0 + 2 + 1
= 16 + 2 + 1
= 1910
CLASS WORK 2: Represent 001102 in decimal.
Week one computer studies lesson note for JSS2
ASSIGNMENT 1
Represent the following;
a. 525 in decimal
b. 1111002 in decimal
OCTAL NUMBER SYSTEM
Octal number system is a base 8 number system and uses the digits from 0 to 7 (0, 1, 2, 3, 4, 5, 6, and 7). Each digit in the
octal number system represents a power of base 8. In octal number system, 3-bits digits are used.
Example:
7410 = 10010102
74
2 37 r 0
2 18 r 1
2 9 r 0
2 4 r 1
2 2 r 0
2 1 r 0
2 0 r 1
and then in octal (base 8);
10010102 = 1128
001 001 010
1 1 2 1128
In decimal, 1128 will be;
1128 = 1 x 82 + 1 x 81 + 2 x 80
= 1 x 64 + 1 x 8 + 2 x 1
= 64 + 8 + 2
= 7410
HEXADECIMAL NUMBER SYSTEM
The hexadecimal number system is a number with a base of 16, usually written using symbols 0 – 9 (0, 1, 2, 3, 4, 5, 6, 7, 8, 9)
and A – F (A, B, C, D, E, F). In hexadecimal, 4-bits digits are used.
Example:
7910 = 010011112
010011112 = 4F16
0100 1111
4 15
= 4 15
= 4 F
= 4F16
CLASS WORK 3: Represent the following;
a. 010011112 in base 8
b. 0010010102 in base 16
Week one computer studies lesson note for JSS2
ASSIGNMENT 2
1. Represent digit 0 – 7 in octal
2. Represent digit 0 – 9, A - F
Week one computer studies lesson note for JSS2