NUMBER-SYSTEM
NUMBER-SYSTEM
The technique to represent and work with numbers is called number system. Decimal
number system is the most common number system. Other popular number systems
include binary number system, octal number system, hexadecimal number system, etc.
In digital systems, instructions are given through electric signals; variation is done by
varying the voltage of the signal. Having 10 different voltages to implement decimal
number system in digital equipment is difficult. So, many number systems that are
easier to implement digitally have been developed. Let’s look at them in detail.
Binary Number System
The easiest way to vary instructions through electric signals is two-state system – on
and off. On is represented as 1 and off as 0, though 0 is not actually no signal but signal
at a lower voltage. The number system having just these two digits – 0 and 1 – is called
binary number system.
Each binary digit is also called a bit. Binary number system is also positional value
system, where each digit has a value expressed in powers of 2, as displayed here.
In any binary number, the rightmost digit is called least significant bit (LSB) and
leftmost digit is called most significant bit (MSB).
And decimal equivalent of this number is sum of product of each digit with its positional
value.
Computer memory is measured in terms of how many bits it can store. Here is a chart
for memory capacity conversion.
1 byte (B) = 8 bit
1 Zettabyte = 1024 EB
1 Yottabyte (YB) = 1024 ZB
Octal Number System
Octal number system has eight digits – 0, 1, 2, 3, 4, 5, 6 and 7. Octal number system is
also a positional value system with where each digit has its value expressed in powers
of 8, as shown here –
Decimal equivalent of any octal number is sum of product of each digit with its positional value.
Decimal equivalent of any hexadecimal number is sum of product of each digit with its
positional value.
10 digits
7 punctuation marks
20 to 40 special characters
Now a computer understands only numeric values, whatever the number system used.
So all characters must have a numeric equivalent called the alphanumeric code. The
most widely used alphanumeric code is American Standard Code for Information
Interchange (ASCII). ASCII is a 7-bit code that has 128 (27) possible codes.
ISCII
ISCII stands for Indian Script Code for Information Interchange. IISCII was developed to
support Indian languages on computer. Language supported by IISCI include
Devanagari, Tamil, Bangla, Gujarati, Gurmukhi, Tamil, Telugu, etc. IISCI is mostly used
by government departments and before it could catch on, a new universal encoding
standard called Unicode was introduced.
Unicode
Unicode is an international coding system designed to be used with different language
scripts. Each character or symbol is assigned a unique numeric value, largely within the
framework of ASCII. Earlier, each script had its own encoding system, which could
conflict with each other.
In contrast, this is what Unicode officially aims to do − Unicode provides a unique
number for every character, no matter what the platform, no matter what the program,
no matter what the language.
Number System Conversion
As you know decimal, binary, octal and hexadecimal number systems are positional
value number systems. To convert binary, octal and hexadecimal to decimal number, we
just need to add the product of each digit with its positional value. Here we are going to
learn other conversion among these number systems.
Decimal to Binary
Decimal numbers can be converted to binary by repeated division of the number by 2
while recording the remainder. Let’s take an example to see how this happens.
The remainders are to be read from bottom to top to obtain the binary equivalent.
Decimal to Hexadecimal
Decimal numbers can be converted to octal by repeated division of the number by 16
while recording the remainder. Let’s take an example to see how this happens.
Binary to Hexadecimal
To convert an octal number to binary, each octal digit is converted to its 3-bit binary
equivalent.