Introduction to Number Systems
An Indian mathematician Aryabhatta is the father of the number system. The technique to represent numbers in the computer system architectures known as number systems.
- There are four types of number systems: binary, octal, decimal and hexadecimal.
- The base of number system is called radix or base.
- Number systems help to represent numbers in a small symbol set.
- There are four number properties: commutative property, associative property, distributive property and identity property.
- Number properties are only associated with algebraic operations that are addition, subtraction, multiplication and division.
- The number system is simply a system to represent or express numbers.
- It is a way of writing any number.
Types of Number Systems
- Binary Number (Base-2 or Radix-2) System
A number system that has only two digits 0 and 1 is called binary number system. The base/radix of the binary number system is 2.
-
- The position of each number is the power of the base.
- The English mathematician George Boole discovered binary number system.
- 0 and 1 are Boolean values or Boolean digits.
- Zero means FALSE, LOW or OFF.
- One means TRUE, HIGH or ON.
- Binary number system takes the following format: (BN)2 Where BN is binary number and base is 2.
- In binary number system, binary number is made up of two symbols (or digits) 0 and 1.
- Binary number system is said to Base-2 system.
- The sequence of binary numbers goes as 00, 01, 10, 11, 100, 101, 110, 111, 1000 and so on.
With representation, some examples are:
-
- (0)2= 0 x 20
- (1)2 = 1 x 20
- (10)2 = 1 x 21 + 0 x 20
- (11)2 = 1 x 21 + 1 x 20
- (100)2 = 1 x 22 + 0 x 21 + 0 x 20
- (101)2 = 1 x 22 + 0 x 21 + 1 x 20
- (1000)2 = 1 x 23+ 0 x 22 + 0 x 21 + 0 x 20
- (1001)2 = 1 x 23+ 0 x 22 + 0 x 21 + 1 x 20
- (1000.0101)2 = 1 x 23+ 0 x 22 + 0 x 21 + 0 x 20 + 0 x 2-1+ 1 x 2-2 + 0 x 2-3 + 1 x 2-4
The term binary digit is often abbreviated to the term bit. The term nibble is a group of 4 bits and byte is a group of 8 bits.
-
- The Kilobyte (KB) unit of computer memory is a group of 1024 bytes.
- A group of 1024 KB is called Megabytes (MB).
- The collection of 1024 MB is said to be Gigabytes (GB).
- One Terabytes (TB) unit of binary number is equal to 1024 GB.
- The next higher data unit is Petabytes (PB).
2. Octal Number (Base-8 or Radix-8) System
An Octal refers to the base-8 numbering system. A number system which has base-eight is called an Octal number system. It uses numbers from 0 to 7.
-
- In Octal number system, an Octal number is made up of eight symbols (or digits) 0, 1, 2, 3, 4, 5, 6 and 7.
- An Octal number system is said to Base-8 system.
- An Octal number system takes the following format: (ON)8 Where ON is an Octal number and base is 8.
- The sequence of an Octal numbers goes as 0, 1, 2, 3, 4, 5, 6, 7, 10, 11, 12, 13, 14, 15, 16, 17, 20, 21, 22, 23, 24, 25, 26, 27, 30 and so on.
With representation, some examples are:
-
- (5)8= 5 x 80
- (10)8 = 1 x 81 + 0 x 80
- (23)8 = 2 x 81 + 3 x 80
- (80)8 = 8 x 81 + 0 x 80
- (98)8 = 9 x 81 + 8 x 80
- (107)8 = 1 x 82 + 0 x 81 + 7 x 80
- (1000)8 = 1 x 83+ 0 x 82 + 0 x 81 + 0 x 80
3. Decimal Number (Base-10 or Radix-10) System
In a decimal number system, each digit is denoted by integers from 0 to 9. Decimal number system is a base-10 system having 10 digits from 0 to 9.
-
- The decimal system consists of 10 single-digit numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
- The decimal number system takes the following format: (DN)10 Where DN is a decimal number and base is 10.
- The sequence of decimal numbers goes as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, ……. and so on.
With representation, some examples are:
-
- (9)10= 9 x 100
- (13)10 = 1 x 101 + 3 x 100
- (128)10 = 1 x 102 + 2 x 101 + 3 x 100
- (1701)10 = 1 x 103 + 7 x 102 + 0 x 101 + 1 x 100 = 1000 + 700 + 0 + 1
4. Hexadecimal Number (Base-16 or Radix-16) System
In a hexadecimal number system, each digit is denoted by integers from 0 to 9 and each character is denoted by A to F.
-
- Hexadecimal number system is a base-16 system having 10 digits from 0 to 9 and letters from A to F.
-
- The hexadecimal system consists of 10 single-digit numbers: 0, 1, 2, 3, 4, 5, 6, 7, 8 and 9.
- It also consists of 6 letters: A, B, C, D, E and F.
- The hexadecimal number system takes the following format: (HN)16 Where HN is a hexadecimal number and base is 16.
- The sequence of decimal numbers goes as 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F, ……. and so on.
With representation, some examples are:
-
- (9)16= 9 x 160
- (13A)16 = 1 x 162 + 3 x 161 + A x 160
- (1D7F)16 = 1 x 163 + D x 162 + 7 x 161 + F x 160 = 4096 + 3328 + 112 + 15 = (7551)16