SlideShare a Scribd company logo
DATA REPRESENTATION
Prof. K ADISESHA (Ph. D)
Contents-
Introduction
Data Representation
Number System Conversions
Binary Arithmetic
Computer Codes
2
Prof. K. Adisesha (Ph. D)
Classification of Number
systems
INTRODUCTION
Prof. K. Adisesha (Ph. D)
3
DATA REPRESENTATION:
In Digital Computer, data and instructions are stored in computer memory
using binary code (or machine code) represented by Binary digIT’s 1 and 0
called BIT’s.
 The data may contain digits, alphabets or special character, which are
converted to bits, understandable by the computer.
 The number system uses well defined symbols called digits.
DATA REPRESENTATION
Classification:
Number systems are basically classified into two types.
They are:
 Non-positional number system
 Positional number system
Prof. K. Adisesha (Ph. D)
4
DATA REPRESENTATION
Non-Positional Number System:
In olden days people use of this type of number system for simple calculations like
additions and subtractions.
 The non-positional number system consists of different symbols that are used to
represent numbers.
 Roman number system is an example of the non-positional number system i.e. I=1,
V=5, X=10, L=50.
 This number system cannot be used effectively to perform arithmetic operations.
Prof. K. Adisesha (Ph. D)
5
DATA REPRESENTATION
Positional Number System:
This type of number system is used determine the quantity that the number
represents based on the position in which there are placed.
 The total number of digits present in any number system is called its Base or
Radix.
 Every number is represented by a base (or radix) x, which represents x digits.
 The base is written after the number as subscript such as 512(10).It is a Decimal
number as its base is 10.
Prof. K. Adisesha (Ph. D)
6
DATA REPRESENTATION
Positional Number System:
The various types of number system are classified as:
 Decimal number system
 Binary number system
 Octal number system
 Hexadecimal number system
Prof. K. Adisesha (Ph. D)
7
Positional Number System
Decimal Number System:
 It is the most widely used number system.
 The decimal number system consists of 10 digits from 0 to 9.
 It has 10 digits and hence its base or radix is 10.
 These digits can be used to represent any numeric value.
 Example: 123(10), 456(10), 7890(10).
 Consider a decimal number 542.76(10) which can be represented in equivalent
value as:
5x102 + 4x101 + 2x100 + 7x10-1 + 6x10-2
Prof. K. Adisesha (Ph. D)
8
Positional Number System
Binary Number System:
Digital computer represents all kinds of data and information in the binary
system.
 Binary number system consists of two digits 0 (low voltage) and 1 (high
voltage).
 Its base or radix is 2.
 Each digit or bit in binary number system can be 0 or 1.
 The positional values are expressed in power of 2.
Prof. K. Adisesha (Ph. D)
9
Positional Number System
Binary Number System:
Digital computer represents all kinds of data and information in the binary
system.
Prof. K. Adisesha (Ph. D)
10
Positional Number System
Binary Number System:
Each digit or bit in binary number system can be 0 or 1 and the positional
values are expressed in power of 2.
 The left most bit 1 is the highest order bit. It is called as Most Significant Bit
(MSB).
 The right most bit 0 is the lower bit. It is called as Least Significant Bit (LSB).
 Example: 1011(2), 111(2), 100001(2)
 Consider a binary number 11011.10(2) which can be represented in equivalent
value as:
1x24 + 1x23 +0x22 + 1x21 + 1x20 + 1x2-1 + 0x2-2
Prof. K. Adisesha (Ph. D)
11
Positional Number System
Octal Number System:
The octal number system has digits starting from 0 to 7. The base or radix of
this system is 8.
 The positional values are expressed in power of 8.
 Any digit in this system is always less than 8.
 Example: 123(8), 236(8), 564(8)
 The number 6418 is not a valid octal number because 8 is not a valid digit.
 Consider a Octal number 234.56(8) which can be represented in equivalent value
as:
2x82 + 3x81 + 4x80 + 5x8-1 + 6x8-2
Prof. K. Adisesha (Ph. D)
12
Positional Number System
Hexadecimal Number System:
The hexadecimal number system consists of 16 digits from 0 to 9 and A to F.
The letters A to F represent decimal numbers from 10 to 15.
 That is, ‘A’ represents 10, ‘B’ represents 11, ‘C’ represents 12, ‘D’ represents 13, ‘E’
represents 14 and ‘F’ represents 15.
 The base or radix of this number system is 16.
 Example: 1A3(16), BCA(16), 56C(H)
 Consider a Octal number 2AF.D6(16) which can be represented in equivalent
value as:
2x162 + Ax161 + Fx160 + Dx16-1 + 6x16-2
Prof. K. Adisesha (Ph. D)
13
Positional Number System
Number Systems:
Prof. K. Adisesha (Ph. D)
14
DATA CONVERSIONS
Number System Conversions:
The various types of number system are classified as:
 Conversion from Decimal to Binary
 Conversion from Decimal to Octal
 Conversion from Decimal to Hexadecimal
 Conversion from Binary to Octal
 Conversion from Binary to Hexadecimal
 Conversion from Octal to Hexadecimal
Prof. K. Adisesha (Ph. D)
15
DATA CONVERSIONS
Conversion from Decimal to Binary:
Steps to convert decimal number to binary number:
• Step 1: Divide the given decimal number by 2.
• Step 2: Take the remainder and record it on the right side.
• Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be
divided further.
• Step 4: The first remainder will be the LSB and the last remainder is the
MSB.
 The equivalent binary number is then written from left to right i.e. from MSB to
LSB.
Prof. K. Adisesha (Ph. D)
16
DATA CONVERSIONS
Conversion from Decimal to Binary:
 The equivalent binary number is then written from left to right i.e. from MSB to LSB.
Thus 458(10)= 11001010(2)Prof. K. Adisesha (Ph. D)
17
DATA CONVERSIONS
Conversion from Decimal to Binary:
Steps to convert decimal fraction number to binary number:
• Step 1: Multiply the given decimal fraction number by 2.
• Step 2: Note the carry and the product.
• Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be
divided further.
• Step 4: The first carry will be the MSB and the last carry is the LSB.
 The equivalent binary fraction number is written from MSB to LSB.
Prof. K. Adisesha (Ph. D)
18
DATA CONVERSIONS
Conversion from Decimal to Binary:
 The equivalent binary number is then written from left to right i.e. from MSB to LSB.
Thus 458(10)= 11001010.1011(2)Prof. K. Adisesha (Ph. D)
19
DATA CONVERSIONS
Conversion from Binary to Decimal :
Steps to convert binary number to decimal number:
• Step 1: Start at the rightmost bit.
• Step 2: Take that bit and multiply by 2n, when n is the current position
beginning at 0 and increasing by 1 each time. This represents a power of
two.
• Step 3: Then, add all the products.
• Step 4: After addition, the resultant is equal to the decimal value of the
binary number
Prof. K. Adisesha (Ph. D)
20
DATA CONVERSIONS
Conversion from Binary to Decimal :
Prof. K. Adisesha (Ph. D)
21
DATA CONVERSIONS
Conversion from Decimal to Octal:
Steps to convert decimal number to octal number:
• Step 1: Divide the given decimal number by 8.
• Step 2: Take the remainder and record it on the right side.
• Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be
divided further.
• Step 4: The first remainder will be the LS-Digit and the last remainder is
the MS-Digit.
 The equivalent binary number is then written from left to right i.e. from MS-
Digit to LS-Digit.
Prof. K. Adisesha (Ph. D)
22
DATA CONVERSIONS
Conversion from Decimal to Octal:
Prof. K. Adisesha (Ph. D)
23
DATA CONVERSIONS
Conversion from octal to decimal number:
Steps to convert octal number to decimal number:
• Step 1: Start at the rightmost bit.
• Step 2: Take that bit and multiply by 8n, when n is the current position
beginning at 0 and increasing by 1 each time. This represents the power of 8.
• Step 3: Then, add all the products.
• Step 4: After addition, the resultant is equal to the decimal value of the octal
number.
Prof. K. Adisesha (Ph. D)
24
DATA CONVERSIONS
Conversion from octal to decimal number:
Prof. K. Adisesha (Ph. D)
25
DATA CONVERSIONS
Conversion from Decimal to Hexadecimal:
Steps to convert decimal number to hexadecimal number:
• Step 1: Divide the given decimal number by 16.
• Step 2: Take the remainder and record it on the right side.
• Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be
divided further.
• Step 4: The first remainder will be the LS-Digit and the last remainder is
the MS-Digit.
 The equivalent binary number is then written from left to right i.e. from MS-
Digit to LS-Digit.
Prof. K. Adisesha (Ph. D)
26
DATA CONVERSIONS
Conversion from Decimal to Hexadecimal:
Example: to convert decimal number 38010 to hexadecimal number:
 The equivalent binary number is then written from left to right i.e. from MS-
Digit to LS-Digit.
Prof. K. Adisesha (Ph. D)
27
DATA CONVERSIONS
Conversion from hexadecimal to decimal number:
Steps to convert hexadecimal number to decimal number:
• Step 1: Start at the rightmost bit.
• Step 2: Take that bit and multiply by 16n, when n is the current position
beginning at 0 and increasing by 1 each time. This represents the power of
16.
• Step 3: Then, add all the products.
• Step 4: After addition, the resultant is equal to the decimal value of the
hexadecimal number.
Prof. K. Adisesha (Ph. D)
28
DATA CONVERSIONS
Conversion from hexadecimal to decimal number:
Prof. K. Adisesha (Ph. D)
29
DATA CONVERSIONS
Conversion from Binary to Octal:
Steps to convert Binary to octal:
• Step 1: Take a binary number in groups of 3 and use the appropriate octal digit in
its place.
• Step 2: Begin at the rightmost 3 bits. If we are not able to form a group of three,
insert 0s to the left until we get all groups of 3 bits each.
• Step 3: Write the octal equivalent of each group.
• Step 4: Repeat the steps until all groups have been converted.
 It may be necessary to add a 0’s to the left of MSB and when representing fractions, it
may be necessary to add a 0’s to right of LSB.
Prof. K. Adisesha (Ph. D)
30
DATA CONVERSIONS
Conversion from Binary to Octal:
Prof. K. Adisesha (Ph. D)
31
DATA CONVERSIONS
Conversion from Octal to Binary:
Steps to convert octal to binary:
• Step 1: Take the each digit from octal number.
• Step 2: Convert each digit to 3-bit binary number. (Each octal digit is represented
by a three- bit binary number as shown in Numbering System Table).
• Step 3: Write the Binary equivalent of each group.
Prof. K. Adisesha (Ph. D)
32
DATA CONVERSIONS
Conversion from Binary to Hexadecimal:
Steps to convert Binary to Hexadecimal:
• Step 1: Take a binary number in groups of 4 and use the appropriate hexadecimal
digit in its place.
• Step 2: Begin at the rightmost 4 bits. If we are not able to form a group of four,
insert 0s to the left until we get all groups of 4 bits each.
• Step 3: Write the hexadecimal equivalent of each group.
• Step 4: Repeat the steps until all groups have been converted.
 It may be necessary to add a 0’s to the left of MSB and when representing fractions, it
may be necessary to add a 0’s to right of LSB.
Prof. K. Adisesha (Ph. D)
33
DATA CONVERSIONS
Conversion from Hexadecimal to Binary:
Steps to convert hexadecimal to binary:
• Step 1: Take the each digit from hexadecimal number.
• Step 2: Convert each digit to 4-bit binary number. (Each hexadecimal digit is
represented by a four- bit binary number as shown in Numbering System Table).
• Step 3: Write the Binary equivalent of each group.
Prof. K. Adisesha (Ph. D)
34
DATA CONVERSIONS
Conversion from Octal to Hexadecimal:
Steps to convert Octal to Hexadecimal:
• Step 1: write the binary equivalent of each octal digit.
• Step 2: Regroup them into 4 bits from the right side with zeros added, if necessary.
• Step 3: Convert each group into its equivalent hexadecimal digit.
 Using Binary system, we can easily convert octal numbers to hexadecimal numbers and
vice-versa.
Prof. K. Adisesha (Ph. D)
35
Binary Arithmetic
Binary Addition:
The addition of two binary numbers is performed in same manner as the
addition of decimal number.
 It adds only two bits and gives sum and carry. If a carry is generated, it should be
carried over to the addition of next two bits.
 The basic rules of binary addition are:
Prof. K. Adisesha (Ph. D)
36
Addend1 Addend2 Sum Carry
0 0 0 0
O 1 1 0
1 0 1 0
1 1 0 1
Binary Arithmetic
Binary Subtraction:
This operation is same as the one performed in the decimal number system.
 This operation is consists of two steps:
 Determine whether it is necessary for us to borrow. If the subtrahend (the lower digit) is
larger than the minuend (the upper digit), it is necessary to borrow from the column to the
left. In binary two is borrowed.
 Subtract the lower value from the upper value
 The basic rules of binary subtraction are:
 When we subtract 1 from 0, it is necessary
to borrow 1 from the next left column
i.e. from the next higher order position.
Prof. K. Adisesha (Ph. D)
37
Minuend Subtrahend Difference Barrow
0 0 0 0
0 1 1 1
1 0 1 0
1 1 0 0
Binary Arithmetic
Binary Addition & Subtraction:
This operation is same as the one performed in the decimal number system.
Prof. K. Adisesha (Ph. D)
38
Binary Arithmetic
Binary Subtraction:
Example: Subtract the following numbers
a) 10 from 14 b) 9 from 29 c) 3 from 5.
Prof. K. Adisesha (Ph. D)
39
Binary Arithmetic
Representation of signed Integers:
The digital computer handle both positive and negative integer.
 It means, is required for representing the sign of the number (- or +), but cannot use the
sign (-) to denote the negative number or sign (+) to denote the positive number.
 So, this is done by adding the leftmost bit to the number called sign bit.
 A positive number has a sign bit 0, while the negative has a sign bit 1.
Prof. K. Adisesha (Ph. D)
40
Binary Arithmetic
Representation of signed Integers:
It is also called as fixed point representation.
 A negative signed integer can be represented in one of the following:
 Sign and magnitude method
 One’s complement method
 Two’s complement method
Prof. K. Adisesha (Ph. D)
41
Binary Arithmetic
Sign and magnitude method:
An integer containing a sign bit followed by magnitude bits are called sign-
magnitude integer.
 In this method, first bit (MSB) is considered as a sign bit and the remaining bits stand
for magnitude.
 Here positive number starts with 0 and negative number starts with 1.
 Example: The binary number is 11001(2). If we take the size of the word is 1 byte ( 8
bits), then the number 25 will be represented as
Prof. K. Adisesha (Ph. D)
42
Binary Arithmetic
1’s Complement representation:
The 1’s complement of a binary number is obtained by changing each 0 to 1
and each 1 to 0.
 This is the simplest method of representing negative binary number.
 In this method, change each bit in the number to its complement.
 Example: Find the 1’s complement of 101000.
Original binary number : 1 0 1 0 0 0
Find 1’s Complement : 0 1 0 1 1 1
Thus 1’s complement of: 101000 is 010111.
Prof. K. Adisesha (Ph. D)
43
Binary Arithmetic
2’s Complement representation:
The 2’s complement of a binary number is obtained by taking 1’s complement of
the number and adding 1 to the Least Significant Bit (LSB) position.
 The general procedure to find 2’s complement is given by:
2’s Complement = 1’s Complement + 1
 Example 1: Find the 2’s complement of: 101000.
 Original binary number : 1 0 1 0 0 0
 Find 1’s Complement : 0 1 0 1 1 1
 Add 1 to LSB + 1
 Hence 2’s Complement of 101000 is: 0 1 1 0 0 0
Prof. K. Adisesha (Ph. D)
44
Binary Arithmetic
Subtraction of Binary Number using Complement:
Most of the computers perform subtraction using complemented number.
 This is less expensive because the same addition circuit is used for subtraction with
slight changes in the circuit.
 In the binary number system we can perform subtraction operation using two methods
of complements:
 Subtraction using 1’s Complement
 Subtraction using 2’s Complement
Prof. K. Adisesha (Ph. D)
45
Binary Arithmetic
Subtraction using 1’s Complement:
Subtraction using 1’s Complement is performed using two cases.
 Case 1: Subtracting a larger number from a smaller number (Minuend is less than
Subtrahend)
o Step 1: Find the 1’s complement of the subtrahend.
o Step 2: Add this to the minuend.
o Step 3: There will be no carry, Re complement the answer to get the difference
Prof. K. Adisesha (Ph. D)
46
Binary Arithmetic
Subtraction using 1’s Complement:
 Example : Subtract 52 from 25 using 1’s complement.
Decimal Binary
Decimal Binary Minuend 25 : 011001
Subtrahend -52 : 110100
1’s complement of subtrahend is : 001011
Minuend : 0 1 1 0 0 1
1’s Complement of subtrahend : + 0 0 1 0 1 1
: 1 0 0 1 0 0
 Since there is no carry take 1’s complement : 0 1 1 0 1 1 attach a negative sign Hence,
the result = - 011011 i.e. - 27
Prof. K. Adisesha (Ph. D)
47
Binary Arithmetic
Subtraction using 1’s Complement:
Subtraction using 1’s Complement is performed using two cases.
 Case 2: Subtracting a smaller number from a larger number (Minuend is greater than
Subtrahend)
o Step 1: Find the 1’s complement of the subtrahend.
o Step 2: Add this to the minuend.
o Step 3: Carry is generated, this carry is called as the end around carry
o Step 4: Add the end around carry back to the LSB to get the final difference
Prof. K. Adisesha (Ph. D)
48
Binary Arithmetic
Subtraction using 1’s Complement:
 Example : Subtract 15 from 25 using 1’s complement.
Decimal Binary
Minuend 25 : 11001
Subtrahend -15 : 01111
1’s complement of subtrahend is : 10000
Minuend : 1 1 0 0 1
1’s Complement of subtrahend : + 1 0 0 0 0
Since there is carry add carry to LSB : 1 0 1 0 0 1
+1
 MSB is zero : 0 1 0 1 0 attach a Positive sign Hence, the result = + 01010 i.e. +10
Prof. K. Adisesha (Ph. D)
49
Computer Codes
Computer Codes:
Computer code helps us to represent characters in a coded form in the memory of
the computer.
 These codes represent specific formats which are used to record data.
 Some of the commonly used computer codes are:
 Binary Coded Decimal (BCD)
 Extended Binary Coded Decimal Interchange Code (EBCDIC)
 American Standard Code for Information Interchange (ASCII)
 Excess-3 Code.
Prof. K. Adisesha (Ph. D)
50
Computer Codes
BCD code (or Weighted BCD Code or 8421 Code):
BCD stands for Binary Coded Decimal.
 It is one of the early computer codes.
 In this coding system, the bits are given from left to right, the weights 8,4,2,1
respectively
 In 4-bit BCD only 24=16 configurations are possible which is insufficient to represent
the various characters.
 Hence 6-bit BCD code was developed by adding two zone positions with which it is
possible to represent 26=64 characters
Prof. K. Adisesha (Ph. D)
51
Computer Codes
BCD code (or Weighted BCD Code or 8421 Code):
The BCD equivalent of each decimal digit is shown in table.
Prof. K. Adisesha (Ph. D)
52
Decimal BCD Code Decimal BCD Code
0 0000 5 0101
1 0001 6 0110
2 0010 7 0111
3 0011 8 1000
4 0100 9 1001
Computer Codes
Excess-3 BCD code (or XS-3 Code):
BCD stands for Binary Coded Decimal.
 The Excess-3 BCD code is a non-weighted code used to express decimal number.
 The name Excess-3 code derived from the fact that each binary code is the
corresponding BCD code plus 0011(2)(i.e. Decimal 3).
 This code is used in some old computers.
 The Excess-3 code equivalent of decimal (0-9)
Prof. K. Adisesha (Ph. D)
53
Computer Codes
Excess-3 code (or Non-Weighted Code):
The following table gives the Excess-3 code equivalent of decimal (0-9)..
Prof. K. Adisesha (Ph. D)
54
Decimal XS-3 Code Decimal XS-3 Code
0 0011 5 1000
1 0100 6 1001
2 0101 7 1010
3 0110 8 1011
4 0111 9 1100
Computer Codes
ASCII Code:
It stands for the American Standard Code for Information Interchange.
 It is a 7-bit code, which is possible to represent 27=128 characters.
 It is used in most microcomputers and minicomputers and in mainframes.
 The ASCII code (Pronounced ask-ee) is of two types – ASCII-7 and ASCII-8.
 ASCII-7 is 7-bit code for representing English characters as numbers, with each letter
assigned a number from 0 to 127.
Prof. K. Adisesha (Ph. D)
55
Computer Codes
EBCDIC:
It stand for Extended Binary Coded Decimal Interchange Code.
 This was developed by IBM.
 It uses an 8-bit code and hence possible to represent 256 different characters or bit
combinations. EBCDIC is used on most computers and computer equipment today.
 It is a coding method generally used by larger computers (mainframes) to present
letters, numbers or other symbols in a binary language the computer can understand.
 EBCDIC is an 8-bit code; therefore, it is divided into two 4-bit groups, where each
4-bit can be represented as 1 hexadecimal digit.
Prof. K. Adisesha (Ph. D)
56
Computer Codes
UNICODE:
Unicode is a universal character encoding standard that assigns a code to every
character and symbol in every language in the world.
 Unicode is the only encoding standard that ensures that you can retrieve or combine
data using any combination of languages.
 Unicode may be 8-bit, 16-bit, or 32-bit.
 The two common Unicode implementations for computer systems are:
 UTF-8, a variable length encoding scheme in which each written symbol is represented by a one- to
four-byte code
 UTF-16, a fixed width encoding scheme in which each written symbol is represented by a two-byte
code
Prof. K. Adisesha (Ph. D)
57
Discussion
Prof. K. Adisesha (Ph. D)
58
Queries ?
Prof. K. Adisesha

More Related Content

What's hot

Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
VandanaPagar1
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
Unsa Shakir
 
DIGITAL COMPUTERS
DIGITAL COMPUTERSDIGITAL COMPUTERS
DIGITAL COMPUTERS
devasishreddy22
 
Computer Number System
Computer Number SystemComputer Number System
Computer Number System
Ahi Bhusan Mukherjee
 
Binary codes
Binary codesBinary codes
Binary codes
GargiKhanna1
 
Data Representation
Data RepresentationData Representation
Data Representation
Dilum Bandara
 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
University of Potsdam
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
DrSonali Vyas
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
Nikhil Pandit
 
Number System
Number SystemNumber System
Number System
Zahid Rajeel
 
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
Tushar B Kute
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
Dilum Bandara
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
Syed Saeed
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
Self-employed
 
Control unit
Control unitControl unit
Control unit
Piyush Rochwani
 
DATA REPRESENTATION
DATA  REPRESENTATIONDATA  REPRESENTATION
DATA REPRESENTATION
Dr. Ajay Kumar Singh
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in C
Sahithi Naraparaju
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
knightnick
 
ROM(Read Only Memory )
ROM(Read Only Memory )ROM(Read Only Memory )
ROM(Read Only Memory )
rohitladdu
 
1.1.2 HEXADECIMAL
1.1.2 HEXADECIMAL1.1.2 HEXADECIMAL
1.1.2 HEXADECIMAL
Buxoo Abdullah
 

What's hot (20)

Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes Digital Electronics- Number systems & codes
Digital Electronics- Number systems & codes
 
decoder and encoder
 decoder and encoder decoder and encoder
decoder and encoder
 
DIGITAL COMPUTERS
DIGITAL COMPUTERSDIGITAL COMPUTERS
DIGITAL COMPUTERS
 
Computer Number System
Computer Number SystemComputer Number System
Computer Number System
 
Binary codes
Binary codesBinary codes
Binary codes
 
Data Representation
Data RepresentationData Representation
Data Representation
 
Conversion of number system
Conversion of number systemConversion of number system
Conversion of number system
 
Combinational circuits
Combinational circuits Combinational circuits
Combinational circuits
 
Register transfer and micro-operation
Register transfer and micro-operationRegister transfer and micro-operation
Register transfer and micro-operation
 
Number System
Number SystemNumber System
Number System
 
Computer architecture and organization
Computer architecture and organizationComputer architecture and organization
Computer architecture and organization
 
Instruction Set Architecture
Instruction Set ArchitectureInstruction Set Architecture
Instruction Set Architecture
 
Encoder & Decoder
Encoder & DecoderEncoder & Decoder
Encoder & Decoder
 
Subtractor (1)
Subtractor (1)Subtractor (1)
Subtractor (1)
 
Control unit
Control unitControl unit
Control unit
 
DATA REPRESENTATION
DATA  REPRESENTATIONDATA  REPRESENTATION
DATA REPRESENTATION
 
constants, variables and datatypes in C
constants, variables and datatypes in Cconstants, variables and datatypes in C
constants, variables and datatypes in C
 
Booths Multiplication Algorithm
Booths Multiplication AlgorithmBooths Multiplication Algorithm
Booths Multiplication Algorithm
 
ROM(Read Only Memory )
ROM(Read Only Memory )ROM(Read Only Memory )
ROM(Read Only Memory )
 
1.1.2 HEXADECIMAL
1.1.2 HEXADECIMAL1.1.2 HEXADECIMAL
1.1.2 HEXADECIMAL
 

Similar to Data representation

Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
Prof. Dr. K. Adisesha
 
digital-180612132737.pdf
digital-180612132737.pdfdigital-180612132737.pdf
digital-180612132737.pdf
17111ASIFNOORJAMEE
 
DIGITAL DESIGN
DIGITAL DESIGNDIGITAL DESIGN
DIGITAL DESIGN
HARINATH REDDY
 
Data repersentation.
Data repersentation.Data repersentation.
Data repersentation.
Ritesh Saini
 
Number-Systems presentation of the mathematics
Number-Systems presentation of the mathematicsNumber-Systems presentation of the mathematics
Number-Systems presentation of the mathematics
shivas379526
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]
Jumaed
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
HamnaKhalid25
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
AswiniT3
 
Data Representation
Data RepresentationData Representation
Data Representation
Education Front
 
NUMBER SYSTEM.pptx
NUMBER  SYSTEM.pptxNUMBER  SYSTEM.pptx
NUMBER SYSTEM.pptx
AsifRahaman16
 
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
umardanjumamaiwada
 
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
umardanjumamaiwada
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
MamataAnilgod
 
Number system
Number systemNumber system
Number system
Palash Sachan
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02
muhammadsarab
 
Anup Barman number system electronicdevice ECE.pptx
Anup Barman number system electronicdevice ECE.pptxAnup Barman number system electronicdevice ECE.pptx
Anup Barman number system electronicdevice ECE.pptx
anupbarmancoochbehar
 
Data representation
Data representationData representation
Data representation
Manish Kumar
 
chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
ssuserf7cd2b
 
chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
ssuserf7cd2b
 
chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
kndnewguade
 

Similar to Data representation (20)

Data representation in computers
Data representation in computersData representation in computers
Data representation in computers
 
digital-180612132737.pdf
digital-180612132737.pdfdigital-180612132737.pdf
digital-180612132737.pdf
 
DIGITAL DESIGN
DIGITAL DESIGNDIGITAL DESIGN
DIGITAL DESIGN
 
Data repersentation.
Data repersentation.Data repersentation.
Data repersentation.
 
Number-Systems presentation of the mathematics
Number-Systems presentation of the mathematicsNumber-Systems presentation of the mathematics
Number-Systems presentation of the mathematics
 
Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]Cse 112 number system-[id_142-15-3472]
Cse 112 number system-[id_142-15-3472]
 
Week 4-Number Systems.pptx
Week 4-Number Systems.pptxWeek 4-Number Systems.pptx
Week 4-Number Systems.pptx
 
Introduction to number system
Introduction to number systemIntroduction to number system
Introduction to number system
 
Data Representation
Data RepresentationData Representation
Data Representation
 
NUMBER SYSTEM.pptx
NUMBER  SYSTEM.pptxNUMBER  SYSTEM.pptx
NUMBER SYSTEM.pptx
 
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
 
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
 
DATA REPRESENTATION.pptx
DATA REPRESENTATION.pptxDATA REPRESENTATION.pptx
DATA REPRESENTATION.pptx
 
Number system
Number systemNumber system
Number system
 
Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02Numbersystem 130621192712-phpapp02
Numbersystem 130621192712-phpapp02
 
Anup Barman number system electronicdevice ECE.pptx
Anup Barman number system electronicdevice ECE.pptxAnup Barman number system electronicdevice ECE.pptx
Anup Barman number system electronicdevice ECE.pptx
 
Data representation
Data representationData representation
Data representation
 
chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
 
chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
 
chap1.pdf
chap1.pdfchap1.pdf
chap1.pdf
 

More from Prof. Dr. K. Adisesha

Software Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdfSoftware Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdf
Prof. Dr. K. Adisesha
 
Software Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdfSoftware Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdf
Prof. Dr. K. Adisesha
 
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdfSoftware Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Prof. Dr. K. Adisesha
 
Software Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdfSoftware Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdf
Prof. Dr. K. Adisesha
 
Software Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdfSoftware Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdf
Prof. Dr. K. Adisesha
 
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdfSoftware Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
Prof. Dr. K. Adisesha
 
Computer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. AdiseshaComputer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. Adisesha
Prof. Dr. K. Adisesha
 
CCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. AdiaeshaCCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. Adiaesha
Prof. Dr. K. Adisesha
 
CCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. AdiseshaCCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. Adisesha
Prof. Dr. K. Adisesha
 
CCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. AdiseshaCCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. Adisesha
Prof. Dr. K. Adisesha
 
CCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdfCCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdf
Prof. Dr. K. Adisesha
 
Introduction to Computers.pdf
Introduction to Computers.pdfIntroduction to Computers.pdf
Introduction to Computers.pdf
Prof. Dr. K. Adisesha
 
R_Programming.pdf
R_Programming.pdfR_Programming.pdf
R_Programming.pdf
Prof. Dr. K. Adisesha
 
Scholarship.pdf
Scholarship.pdfScholarship.pdf
Scholarship.pdf
Prof. Dr. K. Adisesha
 
Operating System-2 by Adi.pdf
Operating System-2 by Adi.pdfOperating System-2 by Adi.pdf
Operating System-2 by Adi.pdf
Prof. Dr. K. Adisesha
 
Operating System-1 by Adi.pdf
Operating System-1 by Adi.pdfOperating System-1 by Adi.pdf
Operating System-1 by Adi.pdf
Prof. Dr. K. Adisesha
 
Operating System-adi.pdf
Operating System-adi.pdfOperating System-adi.pdf
Operating System-adi.pdf
Prof. Dr. K. Adisesha
 
Data_structure using C-Adi.pdf
Data_structure using C-Adi.pdfData_structure using C-Adi.pdf
Data_structure using C-Adi.pdf
Prof. Dr. K. Adisesha
 
JAVA PPT -2 BY ADI.pdf
JAVA PPT -2 BY ADI.pdfJAVA PPT -2 BY ADI.pdf
JAVA PPT -2 BY ADI.pdf
Prof. Dr. K. Adisesha
 
JAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdfJAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdf
Prof. Dr. K. Adisesha
 

More from Prof. Dr. K. Adisesha (20)

Software Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdfSoftware Engineering notes by K. Adisesha.pdf
Software Engineering notes by K. Adisesha.pdf
 
Software Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdfSoftware Engineering-Unit 1 by Adisesha.pdf
Software Engineering-Unit 1 by Adisesha.pdf
 
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdfSoftware Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
Software Engineering-Unit 2 "Requirement Engineering" by Adi.pdf
 
Software Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdfSoftware Engineering-Unit 3 "System Modelling" by Adi.pdf
Software Engineering-Unit 3 "System Modelling" by Adi.pdf
 
Software Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdfSoftware Engineering-Unit 4 "Architectural Design" by Adi.pdf
Software Engineering-Unit 4 "Architectural Design" by Adi.pdf
 
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdfSoftware Engineering-Unit 5 "Software Testing"by Adi.pdf
Software Engineering-Unit 5 "Software Testing"by Adi.pdf
 
Computer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. AdiseshaComputer Networks Notes by -Dr. K. Adisesha
Computer Networks Notes by -Dr. K. Adisesha
 
CCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. AdiaeshaCCN Unit-1&2 Data Communication &Networking by K. Adiaesha
CCN Unit-1&2 Data Communication &Networking by K. Adiaesha
 
CCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. AdiseshaCCN Unit-3 Data Link Layer by Dr. K. Adisesha
CCN Unit-3 Data Link Layer by Dr. K. Adisesha
 
CCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. AdiseshaCCN Unit-4 Network Layer by Dr. K. Adisesha
CCN Unit-4 Network Layer by Dr. K. Adisesha
 
CCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdfCCN Unit-5 Transport & Application Layer by Adi.pdf
CCN Unit-5 Transport & Application Layer by Adi.pdf
 
Introduction to Computers.pdf
Introduction to Computers.pdfIntroduction to Computers.pdf
Introduction to Computers.pdf
 
R_Programming.pdf
R_Programming.pdfR_Programming.pdf
R_Programming.pdf
 
Scholarship.pdf
Scholarship.pdfScholarship.pdf
Scholarship.pdf
 
Operating System-2 by Adi.pdf
Operating System-2 by Adi.pdfOperating System-2 by Adi.pdf
Operating System-2 by Adi.pdf
 
Operating System-1 by Adi.pdf
Operating System-1 by Adi.pdfOperating System-1 by Adi.pdf
Operating System-1 by Adi.pdf
 
Operating System-adi.pdf
Operating System-adi.pdfOperating System-adi.pdf
Operating System-adi.pdf
 
Data_structure using C-Adi.pdf
Data_structure using C-Adi.pdfData_structure using C-Adi.pdf
Data_structure using C-Adi.pdf
 
JAVA PPT -2 BY ADI.pdf
JAVA PPT -2 BY ADI.pdfJAVA PPT -2 BY ADI.pdf
JAVA PPT -2 BY ADI.pdf
 
JAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdfJAVA PPT -5 BY ADI.pdf
JAVA PPT -5 BY ADI.pdf
 

Recently uploaded

The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
Bisnar Chase Personal Injury Attorneys
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
heathfieldcps1
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
Ashokrao Mane college of Pharmacy Peth-Vadgaon
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
WaniBasim
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
adhitya5119
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
ak6969907
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
David Douglas School District
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
Celine George
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
IreneSebastianRueco1
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 

Recently uploaded (20)

The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
Top five deadliest dog breeds in America
Top five deadliest dog breeds in AmericaTop five deadliest dog breeds in America
Top five deadliest dog breeds in America
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
The basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptxThe basics of sentences session 5pptx.pptx
The basics of sentences session 5pptx.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 
Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.Types of Herbal Cosmetics its standardization.
Types of Herbal Cosmetics its standardization.
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Liberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdfLiberal Approach to the Study of Indian Politics.pdf
Liberal Approach to the Study of Indian Politics.pdf
 
Advanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docxAdvanced Java[Extra Concepts, Not Difficult].docx
Advanced Java[Extra Concepts, Not Difficult].docx
 
World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024World environment day ppt For 5 June 2024
World environment day ppt For 5 June 2024
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
Pride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School DistrictPride Month Slides 2024 David Douglas School District
Pride Month Slides 2024 David Douglas School District
 
How to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRMHow to Manage Your Lost Opportunities in Odoo 17 CRM
How to Manage Your Lost Opportunities in Odoo 17 CRM
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
RPMS TEMPLATE FOR SCHOOL YEAR 2023-2024 FOR TEACHER 1 TO TEACHER 3
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 

Data representation

  • 1. DATA REPRESENTATION Prof. K ADISESHA (Ph. D)
  • 2. Contents- Introduction Data Representation Number System Conversions Binary Arithmetic Computer Codes 2 Prof. K. Adisesha (Ph. D) Classification of Number systems
  • 3. INTRODUCTION Prof. K. Adisesha (Ph. D) 3 DATA REPRESENTATION: In Digital Computer, data and instructions are stored in computer memory using binary code (or machine code) represented by Binary digIT’s 1 and 0 called BIT’s.  The data may contain digits, alphabets or special character, which are converted to bits, understandable by the computer.  The number system uses well defined symbols called digits.
  • 4. DATA REPRESENTATION Classification: Number systems are basically classified into two types. They are:  Non-positional number system  Positional number system Prof. K. Adisesha (Ph. D) 4
  • 5. DATA REPRESENTATION Non-Positional Number System: In olden days people use of this type of number system for simple calculations like additions and subtractions.  The non-positional number system consists of different symbols that are used to represent numbers.  Roman number system is an example of the non-positional number system i.e. I=1, V=5, X=10, L=50.  This number system cannot be used effectively to perform arithmetic operations. Prof. K. Adisesha (Ph. D) 5
  • 6. DATA REPRESENTATION Positional Number System: This type of number system is used determine the quantity that the number represents based on the position in which there are placed.  The total number of digits present in any number system is called its Base or Radix.  Every number is represented by a base (or radix) x, which represents x digits.  The base is written after the number as subscript such as 512(10).It is a Decimal number as its base is 10. Prof. K. Adisesha (Ph. D) 6
  • 7. DATA REPRESENTATION Positional Number System: The various types of number system are classified as:  Decimal number system  Binary number system  Octal number system  Hexadecimal number system Prof. K. Adisesha (Ph. D) 7
  • 8. Positional Number System Decimal Number System:  It is the most widely used number system.  The decimal number system consists of 10 digits from 0 to 9.  It has 10 digits and hence its base or radix is 10.  These digits can be used to represent any numeric value.  Example: 123(10), 456(10), 7890(10).  Consider a decimal number 542.76(10) which can be represented in equivalent value as: 5x102 + 4x101 + 2x100 + 7x10-1 + 6x10-2 Prof. K. Adisesha (Ph. D) 8
  • 9. Positional Number System Binary Number System: Digital computer represents all kinds of data and information in the binary system.  Binary number system consists of two digits 0 (low voltage) and 1 (high voltage).  Its base or radix is 2.  Each digit or bit in binary number system can be 0 or 1.  The positional values are expressed in power of 2. Prof. K. Adisesha (Ph. D) 9
  • 10. Positional Number System Binary Number System: Digital computer represents all kinds of data and information in the binary system. Prof. K. Adisesha (Ph. D) 10
  • 11. Positional Number System Binary Number System: Each digit or bit in binary number system can be 0 or 1 and the positional values are expressed in power of 2.  The left most bit 1 is the highest order bit. It is called as Most Significant Bit (MSB).  The right most bit 0 is the lower bit. It is called as Least Significant Bit (LSB).  Example: 1011(2), 111(2), 100001(2)  Consider a binary number 11011.10(2) which can be represented in equivalent value as: 1x24 + 1x23 +0x22 + 1x21 + 1x20 + 1x2-1 + 0x2-2 Prof. K. Adisesha (Ph. D) 11
  • 12. Positional Number System Octal Number System: The octal number system has digits starting from 0 to 7. The base or radix of this system is 8.  The positional values are expressed in power of 8.  Any digit in this system is always less than 8.  Example: 123(8), 236(8), 564(8)  The number 6418 is not a valid octal number because 8 is not a valid digit.  Consider a Octal number 234.56(8) which can be represented in equivalent value as: 2x82 + 3x81 + 4x80 + 5x8-1 + 6x8-2 Prof. K. Adisesha (Ph. D) 12
  • 13. Positional Number System Hexadecimal Number System: The hexadecimal number system consists of 16 digits from 0 to 9 and A to F. The letters A to F represent decimal numbers from 10 to 15.  That is, ‘A’ represents 10, ‘B’ represents 11, ‘C’ represents 12, ‘D’ represents 13, ‘E’ represents 14 and ‘F’ represents 15.  The base or radix of this number system is 16.  Example: 1A3(16), BCA(16), 56C(H)  Consider a Octal number 2AF.D6(16) which can be represented in equivalent value as: 2x162 + Ax161 + Fx160 + Dx16-1 + 6x16-2 Prof. K. Adisesha (Ph. D) 13
  • 14. Positional Number System Number Systems: Prof. K. Adisesha (Ph. D) 14
  • 15. DATA CONVERSIONS Number System Conversions: The various types of number system are classified as:  Conversion from Decimal to Binary  Conversion from Decimal to Octal  Conversion from Decimal to Hexadecimal  Conversion from Binary to Octal  Conversion from Binary to Hexadecimal  Conversion from Octal to Hexadecimal Prof. K. Adisesha (Ph. D) 15
  • 16. DATA CONVERSIONS Conversion from Decimal to Binary: Steps to convert decimal number to binary number: • Step 1: Divide the given decimal number by 2. • Step 2: Take the remainder and record it on the right side. • Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be divided further. • Step 4: The first remainder will be the LSB and the last remainder is the MSB.  The equivalent binary number is then written from left to right i.e. from MSB to LSB. Prof. K. Adisesha (Ph. D) 16
  • 17. DATA CONVERSIONS Conversion from Decimal to Binary:  The equivalent binary number is then written from left to right i.e. from MSB to LSB. Thus 458(10)= 11001010(2)Prof. K. Adisesha (Ph. D) 17
  • 18. DATA CONVERSIONS Conversion from Decimal to Binary: Steps to convert decimal fraction number to binary number: • Step 1: Multiply the given decimal fraction number by 2. • Step 2: Note the carry and the product. • Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be divided further. • Step 4: The first carry will be the MSB and the last carry is the LSB.  The equivalent binary fraction number is written from MSB to LSB. Prof. K. Adisesha (Ph. D) 18
  • 19. DATA CONVERSIONS Conversion from Decimal to Binary:  The equivalent binary number is then written from left to right i.e. from MSB to LSB. Thus 458(10)= 11001010.1011(2)Prof. K. Adisesha (Ph. D) 19
  • 20. DATA CONVERSIONS Conversion from Binary to Decimal : Steps to convert binary number to decimal number: • Step 1: Start at the rightmost bit. • Step 2: Take that bit and multiply by 2n, when n is the current position beginning at 0 and increasing by 1 each time. This represents a power of two. • Step 3: Then, add all the products. • Step 4: After addition, the resultant is equal to the decimal value of the binary number Prof. K. Adisesha (Ph. D) 20
  • 21. DATA CONVERSIONS Conversion from Binary to Decimal : Prof. K. Adisesha (Ph. D) 21
  • 22. DATA CONVERSIONS Conversion from Decimal to Octal: Steps to convert decimal number to octal number: • Step 1: Divide the given decimal number by 8. • Step 2: Take the remainder and record it on the right side. • Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be divided further. • Step 4: The first remainder will be the LS-Digit and the last remainder is the MS-Digit.  The equivalent binary number is then written from left to right i.e. from MS- Digit to LS-Digit. Prof. K. Adisesha (Ph. D) 22
  • 23. DATA CONVERSIONS Conversion from Decimal to Octal: Prof. K. Adisesha (Ph. D) 23
  • 24. DATA CONVERSIONS Conversion from octal to decimal number: Steps to convert octal number to decimal number: • Step 1: Start at the rightmost bit. • Step 2: Take that bit and multiply by 8n, when n is the current position beginning at 0 and increasing by 1 each time. This represents the power of 8. • Step 3: Then, add all the products. • Step 4: After addition, the resultant is equal to the decimal value of the octal number. Prof. K. Adisesha (Ph. D) 24
  • 25. DATA CONVERSIONS Conversion from octal to decimal number: Prof. K. Adisesha (Ph. D) 25
  • 26. DATA CONVERSIONS Conversion from Decimal to Hexadecimal: Steps to convert decimal number to hexadecimal number: • Step 1: Divide the given decimal number by 16. • Step 2: Take the remainder and record it on the right side. • Step 3: Repeat the Step 1 and Step 2 until the decimal number cannot be divided further. • Step 4: The first remainder will be the LS-Digit and the last remainder is the MS-Digit.  The equivalent binary number is then written from left to right i.e. from MS- Digit to LS-Digit. Prof. K. Adisesha (Ph. D) 26
  • 27. DATA CONVERSIONS Conversion from Decimal to Hexadecimal: Example: to convert decimal number 38010 to hexadecimal number:  The equivalent binary number is then written from left to right i.e. from MS- Digit to LS-Digit. Prof. K. Adisesha (Ph. D) 27
  • 28. DATA CONVERSIONS Conversion from hexadecimal to decimal number: Steps to convert hexadecimal number to decimal number: • Step 1: Start at the rightmost bit. • Step 2: Take that bit and multiply by 16n, when n is the current position beginning at 0 and increasing by 1 each time. This represents the power of 16. • Step 3: Then, add all the products. • Step 4: After addition, the resultant is equal to the decimal value of the hexadecimal number. Prof. K. Adisesha (Ph. D) 28
  • 29. DATA CONVERSIONS Conversion from hexadecimal to decimal number: Prof. K. Adisesha (Ph. D) 29
  • 30. DATA CONVERSIONS Conversion from Binary to Octal: Steps to convert Binary to octal: • Step 1: Take a binary number in groups of 3 and use the appropriate octal digit in its place. • Step 2: Begin at the rightmost 3 bits. If we are not able to form a group of three, insert 0s to the left until we get all groups of 3 bits each. • Step 3: Write the octal equivalent of each group. • Step 4: Repeat the steps until all groups have been converted.  It may be necessary to add a 0’s to the left of MSB and when representing fractions, it may be necessary to add a 0’s to right of LSB. Prof. K. Adisesha (Ph. D) 30
  • 31. DATA CONVERSIONS Conversion from Binary to Octal: Prof. K. Adisesha (Ph. D) 31
  • 32. DATA CONVERSIONS Conversion from Octal to Binary: Steps to convert octal to binary: • Step 1: Take the each digit from octal number. • Step 2: Convert each digit to 3-bit binary number. (Each octal digit is represented by a three- bit binary number as shown in Numbering System Table). • Step 3: Write the Binary equivalent of each group. Prof. K. Adisesha (Ph. D) 32
  • 33. DATA CONVERSIONS Conversion from Binary to Hexadecimal: Steps to convert Binary to Hexadecimal: • Step 1: Take a binary number in groups of 4 and use the appropriate hexadecimal digit in its place. • Step 2: Begin at the rightmost 4 bits. If we are not able to form a group of four, insert 0s to the left until we get all groups of 4 bits each. • Step 3: Write the hexadecimal equivalent of each group. • Step 4: Repeat the steps until all groups have been converted.  It may be necessary to add a 0’s to the left of MSB and when representing fractions, it may be necessary to add a 0’s to right of LSB. Prof. K. Adisesha (Ph. D) 33
  • 34. DATA CONVERSIONS Conversion from Hexadecimal to Binary: Steps to convert hexadecimal to binary: • Step 1: Take the each digit from hexadecimal number. • Step 2: Convert each digit to 4-bit binary number. (Each hexadecimal digit is represented by a four- bit binary number as shown in Numbering System Table). • Step 3: Write the Binary equivalent of each group. Prof. K. Adisesha (Ph. D) 34
  • 35. DATA CONVERSIONS Conversion from Octal to Hexadecimal: Steps to convert Octal to Hexadecimal: • Step 1: write the binary equivalent of each octal digit. • Step 2: Regroup them into 4 bits from the right side with zeros added, if necessary. • Step 3: Convert each group into its equivalent hexadecimal digit.  Using Binary system, we can easily convert octal numbers to hexadecimal numbers and vice-versa. Prof. K. Adisesha (Ph. D) 35
  • 36. Binary Arithmetic Binary Addition: The addition of two binary numbers is performed in same manner as the addition of decimal number.  It adds only two bits and gives sum and carry. If a carry is generated, it should be carried over to the addition of next two bits.  The basic rules of binary addition are: Prof. K. Adisesha (Ph. D) 36 Addend1 Addend2 Sum Carry 0 0 0 0 O 1 1 0 1 0 1 0 1 1 0 1
  • 37. Binary Arithmetic Binary Subtraction: This operation is same as the one performed in the decimal number system.  This operation is consists of two steps:  Determine whether it is necessary for us to borrow. If the subtrahend (the lower digit) is larger than the minuend (the upper digit), it is necessary to borrow from the column to the left. In binary two is borrowed.  Subtract the lower value from the upper value  The basic rules of binary subtraction are:  When we subtract 1 from 0, it is necessary to borrow 1 from the next left column i.e. from the next higher order position. Prof. K. Adisesha (Ph. D) 37 Minuend Subtrahend Difference Barrow 0 0 0 0 0 1 1 1 1 0 1 0 1 1 0 0
  • 38. Binary Arithmetic Binary Addition & Subtraction: This operation is same as the one performed in the decimal number system. Prof. K. Adisesha (Ph. D) 38
  • 39. Binary Arithmetic Binary Subtraction: Example: Subtract the following numbers a) 10 from 14 b) 9 from 29 c) 3 from 5. Prof. K. Adisesha (Ph. D) 39
  • 40. Binary Arithmetic Representation of signed Integers: The digital computer handle both positive and negative integer.  It means, is required for representing the sign of the number (- or +), but cannot use the sign (-) to denote the negative number or sign (+) to denote the positive number.  So, this is done by adding the leftmost bit to the number called sign bit.  A positive number has a sign bit 0, while the negative has a sign bit 1. Prof. K. Adisesha (Ph. D) 40
  • 41. Binary Arithmetic Representation of signed Integers: It is also called as fixed point representation.  A negative signed integer can be represented in one of the following:  Sign and magnitude method  One’s complement method  Two’s complement method Prof. K. Adisesha (Ph. D) 41
  • 42. Binary Arithmetic Sign and magnitude method: An integer containing a sign bit followed by magnitude bits are called sign- magnitude integer.  In this method, first bit (MSB) is considered as a sign bit and the remaining bits stand for magnitude.  Here positive number starts with 0 and negative number starts with 1.  Example: The binary number is 11001(2). If we take the size of the word is 1 byte ( 8 bits), then the number 25 will be represented as Prof. K. Adisesha (Ph. D) 42
  • 43. Binary Arithmetic 1’s Complement representation: The 1’s complement of a binary number is obtained by changing each 0 to 1 and each 1 to 0.  This is the simplest method of representing negative binary number.  In this method, change each bit in the number to its complement.  Example: Find the 1’s complement of 101000. Original binary number : 1 0 1 0 0 0 Find 1’s Complement : 0 1 0 1 1 1 Thus 1’s complement of: 101000 is 010111. Prof. K. Adisesha (Ph. D) 43
  • 44. Binary Arithmetic 2’s Complement representation: The 2’s complement of a binary number is obtained by taking 1’s complement of the number and adding 1 to the Least Significant Bit (LSB) position.  The general procedure to find 2’s complement is given by: 2’s Complement = 1’s Complement + 1  Example 1: Find the 2’s complement of: 101000.  Original binary number : 1 0 1 0 0 0  Find 1’s Complement : 0 1 0 1 1 1  Add 1 to LSB + 1  Hence 2’s Complement of 101000 is: 0 1 1 0 0 0 Prof. K. Adisesha (Ph. D) 44
  • 45. Binary Arithmetic Subtraction of Binary Number using Complement: Most of the computers perform subtraction using complemented number.  This is less expensive because the same addition circuit is used for subtraction with slight changes in the circuit.  In the binary number system we can perform subtraction operation using two methods of complements:  Subtraction using 1’s Complement  Subtraction using 2’s Complement Prof. K. Adisesha (Ph. D) 45
  • 46. Binary Arithmetic Subtraction using 1’s Complement: Subtraction using 1’s Complement is performed using two cases.  Case 1: Subtracting a larger number from a smaller number (Minuend is less than Subtrahend) o Step 1: Find the 1’s complement of the subtrahend. o Step 2: Add this to the minuend. o Step 3: There will be no carry, Re complement the answer to get the difference Prof. K. Adisesha (Ph. D) 46
  • 47. Binary Arithmetic Subtraction using 1’s Complement:  Example : Subtract 52 from 25 using 1’s complement. Decimal Binary Decimal Binary Minuend 25 : 011001 Subtrahend -52 : 110100 1’s complement of subtrahend is : 001011 Minuend : 0 1 1 0 0 1 1’s Complement of subtrahend : + 0 0 1 0 1 1 : 1 0 0 1 0 0  Since there is no carry take 1’s complement : 0 1 1 0 1 1 attach a negative sign Hence, the result = - 011011 i.e. - 27 Prof. K. Adisesha (Ph. D) 47
  • 48. Binary Arithmetic Subtraction using 1’s Complement: Subtraction using 1’s Complement is performed using two cases.  Case 2: Subtracting a smaller number from a larger number (Minuend is greater than Subtrahend) o Step 1: Find the 1’s complement of the subtrahend. o Step 2: Add this to the minuend. o Step 3: Carry is generated, this carry is called as the end around carry o Step 4: Add the end around carry back to the LSB to get the final difference Prof. K. Adisesha (Ph. D) 48
  • 49. Binary Arithmetic Subtraction using 1’s Complement:  Example : Subtract 15 from 25 using 1’s complement. Decimal Binary Minuend 25 : 11001 Subtrahend -15 : 01111 1’s complement of subtrahend is : 10000 Minuend : 1 1 0 0 1 1’s Complement of subtrahend : + 1 0 0 0 0 Since there is carry add carry to LSB : 1 0 1 0 0 1 +1  MSB is zero : 0 1 0 1 0 attach a Positive sign Hence, the result = + 01010 i.e. +10 Prof. K. Adisesha (Ph. D) 49
  • 50. Computer Codes Computer Codes: Computer code helps us to represent characters in a coded form in the memory of the computer.  These codes represent specific formats which are used to record data.  Some of the commonly used computer codes are:  Binary Coded Decimal (BCD)  Extended Binary Coded Decimal Interchange Code (EBCDIC)  American Standard Code for Information Interchange (ASCII)  Excess-3 Code. Prof. K. Adisesha (Ph. D) 50
  • 51. Computer Codes BCD code (or Weighted BCD Code or 8421 Code): BCD stands for Binary Coded Decimal.  It is one of the early computer codes.  In this coding system, the bits are given from left to right, the weights 8,4,2,1 respectively  In 4-bit BCD only 24=16 configurations are possible which is insufficient to represent the various characters.  Hence 6-bit BCD code was developed by adding two zone positions with which it is possible to represent 26=64 characters Prof. K. Adisesha (Ph. D) 51
  • 52. Computer Codes BCD code (or Weighted BCD Code or 8421 Code): The BCD equivalent of each decimal digit is shown in table. Prof. K. Adisesha (Ph. D) 52 Decimal BCD Code Decimal BCD Code 0 0000 5 0101 1 0001 6 0110 2 0010 7 0111 3 0011 8 1000 4 0100 9 1001
  • 53. Computer Codes Excess-3 BCD code (or XS-3 Code): BCD stands for Binary Coded Decimal.  The Excess-3 BCD code is a non-weighted code used to express decimal number.  The name Excess-3 code derived from the fact that each binary code is the corresponding BCD code plus 0011(2)(i.e. Decimal 3).  This code is used in some old computers.  The Excess-3 code equivalent of decimal (0-9) Prof. K. Adisesha (Ph. D) 53
  • 54. Computer Codes Excess-3 code (or Non-Weighted Code): The following table gives the Excess-3 code equivalent of decimal (0-9).. Prof. K. Adisesha (Ph. D) 54 Decimal XS-3 Code Decimal XS-3 Code 0 0011 5 1000 1 0100 6 1001 2 0101 7 1010 3 0110 8 1011 4 0111 9 1100
  • 55. Computer Codes ASCII Code: It stands for the American Standard Code for Information Interchange.  It is a 7-bit code, which is possible to represent 27=128 characters.  It is used in most microcomputers and minicomputers and in mainframes.  The ASCII code (Pronounced ask-ee) is of two types – ASCII-7 and ASCII-8.  ASCII-7 is 7-bit code for representing English characters as numbers, with each letter assigned a number from 0 to 127. Prof. K. Adisesha (Ph. D) 55
  • 56. Computer Codes EBCDIC: It stand for Extended Binary Coded Decimal Interchange Code.  This was developed by IBM.  It uses an 8-bit code and hence possible to represent 256 different characters or bit combinations. EBCDIC is used on most computers and computer equipment today.  It is a coding method generally used by larger computers (mainframes) to present letters, numbers or other symbols in a binary language the computer can understand.  EBCDIC is an 8-bit code; therefore, it is divided into two 4-bit groups, where each 4-bit can be represented as 1 hexadecimal digit. Prof. K. Adisesha (Ph. D) 56
  • 57. Computer Codes UNICODE: Unicode is a universal character encoding standard that assigns a code to every character and symbol in every language in the world.  Unicode is the only encoding standard that ensures that you can retrieve or combine data using any combination of languages.  Unicode may be 8-bit, 16-bit, or 32-bit.  The two common Unicode implementations for computer systems are:  UTF-8, a variable length encoding scheme in which each written symbol is represented by a one- to four-byte code  UTF-16, a fixed width encoding scheme in which each written symbol is represented by a two-byte code Prof. K. Adisesha (Ph. D) 57
  • 58. Discussion Prof. K. Adisesha (Ph. D) 58 Queries ? Prof. K. Adisesha