Professional Documents
Culture Documents
DATA REPRESENTATION
Digital Number Systems
In digital systems like computers, the quantities are represented by symbols called
digits. Many number systems are in use in digital technology that represents the digits in
various forms. The most common are:
(1) Decimal Number System
It is composed of 10 numerals or symbols because of this; the base of this number
system is 10. This is also known as base-10 system because it has 10 digits. These 10
symbols are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9. It is positional value system in which the value
of a digit depends on its position. For example, in decimal number 729, 7 represents
7 hundreds, the 2 represents 2 tens, and the 9 represents 9 units. In this, 7 carry the
most weight of three digits; it is referred to as the most significant digit (MSD). The
9 carry the least weight and is called the least significant digit (LSD).
Number Conversions
(1) Decimal-to-Binary Conversion
There are two procedures for converting (Integers) from decimal to binary:
(i) Referring to Table of Powers
(ii) Repeated Division Method by base 2 and Multiply fractional part by 2 &
store the Integral part, read them from top to bottom.
2 43 1 LSB
2 21 1
2 10 0
2 5 1
2 2 0
2 1 1
0 MSB
2
8 266 2 LSB
8 33 1
8 4 4
0 MSB
Now, Reading the remainders from bottom to the top for 266 and reading Integral
part from top to bottom for 0.375. Hence,
266.37510 = 412.38
add them.
Page
For example,
(vi) Octal-to-Binary Conversion
The conversion from octal to binary is performed by converting each octal digit to
its 3-bit binary equivalent. Binary equivalents of octal digits given below in the
table:-
Octal Digit 0 1 2 3 4 5 6 7
Binary
000 001 010 011 100 101 110 111
Equivalent
4 7 2
Hence, 1001110102 = 4728
To illustrate, consider the conversion of 1101.01112 to octal.
001 101 011 100
1 5 3 4
Hence, 1101.01112 = 15.348
16 423 7 LSB
16 26 A
16 1 1
0 MSB
Now, Reading the remainders from bottom to the top for 423 and reading Integral
part from top to bottom for 0.01325. Hence,
423.0132510 = 1A7.0816
1 3 A
Hence, 1001110102 = 13A16
To illustrate, consider the conversion of 101101.0111012 to hexadecimal.
0010 1101 0111 0100
2 D 7 4
Hence, 101101.0111012 = 2D.7416
A B C D E F
Hexadecimal
8 9 means means means means means means
Digit
10 11 12 13 14 15
Binary
1000 1001 1010 1011 1100 1101 1110 1111
Equivalent
An 8 bits word can represent total 28 – 1 = 255 numbers i.e., -127 to 0 and 0 to
+128.
6
Page
(ii) One’s Complement representation
To calculate 1’s complement of a binary number, just replace every 0 with 1 and
every 1 with 0. For example, 1’s complement of binary number 1001 will be
0110.
Total numbers which can be represented by N bit word. Using One’s
Complement representation is 2N–1.
For example, Express –13 in One’s Complement form in 8-bit.
+13 = 0000 1101
–13 = 1111 0010
ASCII:-
It stands for American Standard Code for Information Interchange. This is seven bit
code capable of coding 27 = 128 characters. This is more than enough to represent all of the
standard keyboard characters as well as control functions. ASCII is used in most
microcomputers and minicomputers and in many mainframes. For example, what is the
following message which is encoded in ASCII code?
1001000 1000101 1001100 1010000
Solution:-
Convert each 7-bit code to its Decimal Equivalent. The results are
1001000 1000101 1001100 1010000
72 69 76 80
H E L P
Hence, the message is HELP.
ISCII:-
It stands for Indian Standard Code for Information Interchange. This is eight bit code
capable of coding 256 characters. It retains all ASCII characters and offers coding for Indian
7
Significance of UNICODE:-
(i) It enables a single software product or a single website to be targeted across
multiple platforms, languages and countries without re-engineering.
(ii) It allows data to be transported through many different systems without
corruption.
8
Page