SlideShare a Scribd company logo
Ramakrishna Reddy Bijjam
Asst Prof, Avanthi PG College,
brreddy@avanthipg.ac.in
9966484777
Data Types
Complements
Fixed Point Representation
Floating Point Representation
Overflow Detection
Data Representation
Data Types
Binary information in digital computers is stored in
memory or registers.
The data types found in digital registers or memory
is classified as one of the following types:
 Numbers used in arithmetic computation
 Letters of alphabets used in data processing
 Other symbols used for specific purpose
Data Types
A number system of base or radix (r) is a system that
uses distinct symbols for r digits
 Binary ->0,1
 Octal->0,1,2,3,4,5,6,7
 Decimal->0,1,2,3,4,5,6,7,8,9
 Hexadecimal->0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
Data Types
Data Types
Data Types
Data Types
Data Types
Data Types
Data Types
Many application of digital computers require the
handling of data that consists not only of numbers
but also letters of alphabets and certain special
characters.
The standard alphanumeric binary code is
ASCII(American Standard code for Information
Interchange)which uses 7 bits to code 128 characters.
Data Types
Complements
Complements are used in digital computers for
simplifying the subtraction operation.
There are two types of complement for base r-system
 (r-1)’s complement
 r’s complement
Complements
Let’s suppose a given number N in base r having n
digits, the (r-1)’s complement of N is defined as
(r^n-1)-N.
(r-1)’s complement can be achieved as:
 Subtracting each digit from 9(for decimal)
 Subtracting each digit from 1(for binary)
 Subtracting each digit from 7(for octal)
 Subtracting each digit from F(15)(for hexadecimal)
Complements
r’s complement of n-digit number N in base r is
defined as r^n-N
r^n-N = (r^n-1)-N+1 = (r-1)’s complement + 1
Complements
Complements
Complements
Fixed Point Representation
Sign bit placed in the leftmost position of the
number determine if the number is positive or
negative. It is 1 for negative and o for positive.
In addition to sign bit a number may have decimal or
binary point. There are two ways of specifying the
position of the binary point in register.
 By giving it fixed position
 By employing floating point representation
Fixed Point Representation
The fixed point assumes one of the following case:
 Binary point in the extreme left to make stored number
fraction .
 Binary point in extreme right to make the stored number an
integer
Floating point representation uses the second
register to store a number that designates the
position of the binary point.
Fixed Point Representation
When an integer binary number is positive, sign is
represented by o and magnitude by positive binary
number.
When it is negative sign bit is represented by 1 and
rest of the number can be represented in one of the
following ways:
 Signed-Magnitude Representation
 Signed-1’s Complement Representation
 Signed-2’s Complement Representation
Fixed Point Representation
There is only one way to represent +14(0 0001110) in
8-bit register.
There are 3 different ways to represent -14 with 8
bits:
 Signed Magnitude Representation: 1 0001110
 Signed 1’s Complement Representation: 1 1110001
 Signed 2’s Complement Representation: 1 1110010
Fixed Point Representation
The 1’s complement imposes difficulties because it
has two representation of 0(+0[0000] and -0[1111]).
It is seldom used in arithmetic operation except in
some older compilers.
It is useful in logical operation since change from 1to
0, 0 to 1 is equivalent to logical complement
function.
Fixed Point Representation
Fixed Point Representation
Sometime there is need to convert the data from one
bit length to another(4 bit to 8 bit etc.)
This conversion is very simple to apply in case of
signed magnitude representation, just shifting of the
signed bit is required.
But this method won’t be applicable in case of signed
2’complement.
In the case of 2’s complement representation, the
process called sign extension is implemented.
Fixed Point Representation
Fixed Point Representation
Fixed Point Representation
Arithmetic Addition
Adding the numbers in signed 2’s complement
system require only addition and complementation.
 Add the two numbers, including their sign bits.
Discard any carry out of the sign(leftmost) bit position.
Note:
Negative numbers must initially be in 2’s complement and
if the sum obtained after the addition is negative it is in 2’s
complement form.
Arithmetic Addition
Arithmetic Subtraction
2’s complement subtraction includes following steps:
 Take the 2’s complement of number to be subtracted including
the sign bit.
 Add it the next number.
 Discard the carry out of the sign bit position
Arithmetic Subtraction
-6-(-13)=+7
-6
2’s complement of -13
11111010
00001101
00000111
Floating Point Representation
With a fixed point notation it is possible to represent
a range of positive and negative integers centered on
0.
This approach has limitation. Very large nor can very
small fractions can be represented.
In decimal numbers we use scientific notation to
represent very large and very small numbers.
Same approach can be used to represent binary
numbers.
Floating Point Representation
We can represent the number in the form
Floating Point Representation
Floating Point Representation
Left most bit stores the sign of the number
The exponent value is stored in the next 8 bits using
the biased representation.
In this representation, to obtain the actual exponent
a value called bias subtracted is subtracted from the
field.
Typical value for bias is 2^(k-1)-1 where k is the
number of bits.
In this case biased value is 127.
Floating Point Representation
Final 23 bits portion is significand or mantissa.
To simplified the operation, it is required that it is
normalized. For our example a normalized nonzero
number is one in the form.
Where b is either 0 or 1
Floating Point Representation
Floating Point Representation
Floating point representation is defined in IEEE
Standard 754.
It defines both 32 bit single and 64 bit double format
with 8-bit and 16 bit exponent.
Overflow
When two numbers of n digits each are added and
sum occupies (n+1) digits, we say that an overflow
occur.
In many computers when overflow occurs,
corresponding flag is set which is later checked by
the user.
When two unsigned numbers are added, an overflow
is detected from the end carry out of the most
significant position.
Overflow
In case of signed number overflow condition can be
detected by observing the carry into the sign bit
position and carry out of the sign bit position.
If these two carries aren’t equal, an overflow
condition is produced.
If two carries are applied to exclusive-OR gate, an
overflow will be detected when output of the gate is
equal to 1.
Overflow

More Related Content

Similar to datareprersentation 1.pptx

Computer Oraganizaation.pptx
Computer Oraganizaation.pptxComputer Oraganizaation.pptx
Computer Oraganizaation.pptx
bmangesh
 
Representation of Integers
Representation of IntegersRepresentation of Integers
Representation of Integers
Susantha Herath
 
Data representation
Data representationData representation
Data representation
shashikant pabari
 
Computer arithmetic operations.pptx
Computer arithmetic operations.pptxComputer arithmetic operations.pptx
Computer arithmetic operations.pptx
ssusera6fdd5
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.ppt
zorogoh2
 
Chapter 9.pdf
Chapter 9.pdfChapter 9.pdf
Chapter 9.pdf
sarojthapa35
 
Neumerical Methods.pptx
Neumerical Methods.pptxNeumerical Methods.pptx
Neumerical Methods.pptx
PayelDalal
 
index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...
mayurjagdale4
 
Data representation computer architecture
Data representation  computer architectureData representation  computer architecture
Data representation computer architecture
study cse
 
Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...
mayurjagdale4
 
Memory management of datatypes
Memory management of datatypesMemory management of datatypes
Memory management of datatypes
Monika Sanghani
 
Data representation
Data representationData representation
Data representation
Manish Kumar
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
miftah88
 
UNIT 1 (1).pptx
UNIT 1 (1).pptxUNIT 1 (1).pptx
UNIT 1 (1).pptx
KaranAswal2
 
Unit-8-Computer-Arithmetic.pdf
Unit-8-Computer-Arithmetic.pdfUnit-8-Computer-Arithmetic.pdf
Unit-8-Computer-Arithmetic.pdf
GafryMahmoud
 
Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...
Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...
Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...
IJERD Editor
 
Data representation
Data representationData representation
Data representation
Mysore
 
data type.pptxddddswwyertr hai na ki extend kr de la
data type.pptxddddswwyertr hai na ki extend kr de ladata type.pptxddddswwyertr hai na ki extend kr de la
data type.pptxddddswwyertr hai na ki extend kr de la
LEOFAKE
 
Codes
CodesCodes
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
umardanjumamaiwada
 

Similar to datareprersentation 1.pptx (20)

Computer Oraganizaation.pptx
Computer Oraganizaation.pptxComputer Oraganizaation.pptx
Computer Oraganizaation.pptx
 
Representation of Integers
Representation of IntegersRepresentation of Integers
Representation of Integers
 
Data representation
Data representationData representation
Data representation
 
Computer arithmetic operations.pptx
Computer arithmetic operations.pptxComputer arithmetic operations.pptx
Computer arithmetic operations.pptx
 
Number Systems.ppt
Number Systems.pptNumber Systems.ppt
Number Systems.ppt
 
Chapter 9.pdf
Chapter 9.pdfChapter 9.pdf
Chapter 9.pdf
 
Neumerical Methods.pptx
Neumerical Methods.pptxNeumerical Methods.pptx
Neumerical Methods.pptx
 
index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...index of all of the financial accounts in a company's general ledger. In shor...
index of all of the financial accounts in a company's general ledger. In shor...
 
Data representation computer architecture
Data representation  computer architectureData representation  computer architecture
Data representation computer architecture
 
Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...Computer Architecture refers to those attributes of a system that have a dire...
Computer Architecture refers to those attributes of a system that have a dire...
 
Memory management of datatypes
Memory management of datatypesMemory management of datatypes
Memory management of datatypes
 
Data representation
Data representationData representation
Data representation
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
 
UNIT 1 (1).pptx
UNIT 1 (1).pptxUNIT 1 (1).pptx
UNIT 1 (1).pptx
 
Unit-8-Computer-Arithmetic.pdf
Unit-8-Computer-Arithmetic.pdfUnit-8-Computer-Arithmetic.pdf
Unit-8-Computer-Arithmetic.pdf
 
Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...
Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...
Comparison of Adders for optimized Exponent Addition circuit in IEEE754 Float...
 
Data representation
Data representationData representation
Data representation
 
data type.pptxddddswwyertr hai na ki extend kr de la
data type.pptxddddswwyertr hai na ki extend kr de ladata type.pptxddddswwyertr hai na ki extend kr de la
data type.pptxddddswwyertr hai na ki extend kr de la
 
Codes
CodesCodes
Codes
 
Csc 2313 (lecture 3)
Csc 2313 (lecture 3)Csc 2313 (lecture 3)
Csc 2313 (lecture 3)
 

More from Ramakrishna Reddy Bijjam

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
Ramakrishna Reddy Bijjam
 
Arrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptxArrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptx
Ramakrishna Reddy Bijjam
 
Auxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptxAuxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptx
Ramakrishna Reddy Bijjam
 
Python With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptxPython With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptx
Ramakrishna Reddy Bijjam
 
Pointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxPointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptx
Ramakrishna Reddy Bijjam
 
Certinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptxCertinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptx
Ramakrishna Reddy Bijjam
 
Auxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptxAuxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptx
Ramakrishna Reddy Bijjam
 
Random Forest Decision Tree.pptx
Random Forest Decision Tree.pptxRandom Forest Decision Tree.pptx
Random Forest Decision Tree.pptx
Ramakrishna Reddy Bijjam
 
K Means Clustering in ML.pptx
K Means Clustering in ML.pptxK Means Clustering in ML.pptx
K Means Clustering in ML.pptx
Ramakrishna Reddy Bijjam
 
Pandas.pptx
Pandas.pptxPandas.pptx
Python With MongoDB.pptx
Python With MongoDB.pptxPython With MongoDB.pptx
Python With MongoDB.pptx
Ramakrishna Reddy Bijjam
 
Python with MySql.pptx
Python with MySql.pptxPython with MySql.pptx
Python with MySql.pptx
Ramakrishna Reddy Bijjam
 
PYTHON PROGRAMMING NOTES RKREDDY.pdf
PYTHON PROGRAMMING NOTES RKREDDY.pdfPYTHON PROGRAMMING NOTES RKREDDY.pdf
PYTHON PROGRAMMING NOTES RKREDDY.pdf
Ramakrishna Reddy Bijjam
 
BInary file Operations.pptx
BInary file Operations.pptxBInary file Operations.pptx
BInary file Operations.pptx
Ramakrishna Reddy Bijjam
 
Data Science in Python.pptx
Data Science in Python.pptxData Science in Python.pptx
Data Science in Python.pptx
Ramakrishna Reddy Bijjam
 
CSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptxCSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptx
Ramakrishna Reddy Bijjam
 
HTML files in python.pptx
HTML files in python.pptxHTML files in python.pptx
HTML files in python.pptx
Ramakrishna Reddy Bijjam
 
Regular Expressions in Python.pptx
Regular Expressions in Python.pptxRegular Expressions in Python.pptx
Regular Expressions in Python.pptx
Ramakrishna Reddy Bijjam
 
Apriori.pptx
Apriori.pptxApriori.pptx
Eclat.pptx
Eclat.pptxEclat.pptx

More from Ramakrishna Reddy Bijjam (20)

Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Arrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptxArrays to arrays and pointers with arrays.pptx
Arrays to arrays and pointers with arrays.pptx
 
Auxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptxAuxiliary, Cache and Virtual memory.pptx
Auxiliary, Cache and Virtual memory.pptx
 
Python With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptxPython With MongoDB in advanced Python.pptx
Python With MongoDB in advanced Python.pptx
 
Pointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptxPointers and single &multi dimentionalarrays.pptx
Pointers and single &multi dimentionalarrays.pptx
 
Certinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptxCertinity Factor and Dempster-shafer theory .pptx
Certinity Factor and Dempster-shafer theory .pptx
 
Auxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptxAuxiliary Memory in computer Architecture.pptx
Auxiliary Memory in computer Architecture.pptx
 
Random Forest Decision Tree.pptx
Random Forest Decision Tree.pptxRandom Forest Decision Tree.pptx
Random Forest Decision Tree.pptx
 
K Means Clustering in ML.pptx
K Means Clustering in ML.pptxK Means Clustering in ML.pptx
K Means Clustering in ML.pptx
 
Pandas.pptx
Pandas.pptxPandas.pptx
Pandas.pptx
 
Python With MongoDB.pptx
Python With MongoDB.pptxPython With MongoDB.pptx
Python With MongoDB.pptx
 
Python with MySql.pptx
Python with MySql.pptxPython with MySql.pptx
Python with MySql.pptx
 
PYTHON PROGRAMMING NOTES RKREDDY.pdf
PYTHON PROGRAMMING NOTES RKREDDY.pdfPYTHON PROGRAMMING NOTES RKREDDY.pdf
PYTHON PROGRAMMING NOTES RKREDDY.pdf
 
BInary file Operations.pptx
BInary file Operations.pptxBInary file Operations.pptx
BInary file Operations.pptx
 
Data Science in Python.pptx
Data Science in Python.pptxData Science in Python.pptx
Data Science in Python.pptx
 
CSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptxCSV JSON and XML files in Python.pptx
CSV JSON and XML files in Python.pptx
 
HTML files in python.pptx
HTML files in python.pptxHTML files in python.pptx
HTML files in python.pptx
 
Regular Expressions in Python.pptx
Regular Expressions in Python.pptxRegular Expressions in Python.pptx
Regular Expressions in Python.pptx
 
Apriori.pptx
Apriori.pptxApriori.pptx
Apriori.pptx
 
Eclat.pptx
Eclat.pptxEclat.pptx
Eclat.pptx
 

Recently uploaded

一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
smpc3nvg
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
boryssutkowski
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
Confidence Ago
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
gpffo76j
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
9a93xvy
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
7sd8fier
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
n0tivyq
 
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
pmgdscunsri
 
Moldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo espMoldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo esp
Hess9
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Mansi Shah
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
9a93xvy
 
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdfPORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
fabianavillanib
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
aaryangarg12
 
vernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdfvernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdf
PrabhjeetSingh219035
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
7sd8fier
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
cy0krjxt
 
projectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdfprojectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdf
farazahmadas6
 
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
Chiara Aliotta
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
h7j5io0
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
Alan Dix
 

Recently uploaded (20)

一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
一比一原版(Brunel毕业证书)布鲁内尔大学毕业证成绩单如何办理
 
Borys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior designBorys Sutkowski portfolio interior design
Borys Sutkowski portfolio interior design
 
Book Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for DesignersBook Formatting: Quality Control Checks for Designers
Book Formatting: Quality Control Checks for Designers
 
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
原版定做(penn毕业证书)美国宾夕法尼亚大学毕业证文凭学历证书原版一模一样
 
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
一比一原版(RHUL毕业证书)伦敦大学皇家霍洛威学院毕业证如何办理
 
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
一比一原版(UNUK毕业证书)诺丁汉大学毕业证如何办理
 
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
一比一原版(Glasgow毕业证书)格拉斯哥大学毕业证成绩单如何办理
 
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
Maximize Your Content with Beautiful Assets : Content & Asset for Landing Page
 
Moldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo espMoldes de letra 3D Alfabeto completo esp
Moldes de letra 3D Alfabeto completo esp
 
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
Between Filth and Fortune- Urban Cattle Foraging Realities by Devi S Nair, An...
 
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
一比一原版(CITY毕业证书)谢菲尔德哈勒姆大学毕业证如何办理
 
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdfPORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
PORTFOLIO FABIANA VILLANI ARCHITECTURE.pdf
 
Transforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting ProfitabilityTransforming Brand Perception and Boosting Profitability
Transforming Brand Perception and Boosting Profitability
 
vernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdfvernacular architecture in response to climate.pdf
vernacular architecture in response to climate.pdf
 
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
一比一原版(NCL毕业证书)纽卡斯尔大学毕业证成绩单如何办理
 
Design Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinkingDesign Thinking Design thinking Design thinking
Design Thinking Design thinking Design thinking
 
projectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdfprojectreportnew-170307082323 nnnnnn(1).pdf
projectreportnew-170307082323 nnnnnn(1).pdf
 
Storytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design ProcessStorytelling For The Web: Integrate Storytelling in your Design Process
Storytelling For The Web: Integrate Storytelling in your Design Process
 
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
一比一原版(UCB毕业证书)伯明翰大学学院毕业证成绩单如何办理
 
Can AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI preludeCan AI do good? at 'offtheCanvas' India HCI prelude
Can AI do good? at 'offtheCanvas' India HCI prelude
 

datareprersentation 1.pptx

  • 1. Ramakrishna Reddy Bijjam Asst Prof, Avanthi PG College, brreddy@avanthipg.ac.in 9966484777
  • 2. Data Types Complements Fixed Point Representation Floating Point Representation Overflow Detection Data Representation
  • 3. Data Types Binary information in digital computers is stored in memory or registers. The data types found in digital registers or memory is classified as one of the following types:  Numbers used in arithmetic computation  Letters of alphabets used in data processing  Other symbols used for specific purpose
  • 4. Data Types A number system of base or radix (r) is a system that uses distinct symbols for r digits  Binary ->0,1  Octal->0,1,2,3,4,5,6,7  Decimal->0,1,2,3,4,5,6,7,8,9  Hexadecimal->0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
  • 11. Data Types Many application of digital computers require the handling of data that consists not only of numbers but also letters of alphabets and certain special characters. The standard alphanumeric binary code is ASCII(American Standard code for Information Interchange)which uses 7 bits to code 128 characters.
  • 13. Complements Complements are used in digital computers for simplifying the subtraction operation. There are two types of complement for base r-system  (r-1)’s complement  r’s complement
  • 14. Complements Let’s suppose a given number N in base r having n digits, the (r-1)’s complement of N is defined as (r^n-1)-N. (r-1)’s complement can be achieved as:  Subtracting each digit from 9(for decimal)  Subtracting each digit from 1(for binary)  Subtracting each digit from 7(for octal)  Subtracting each digit from F(15)(for hexadecimal)
  • 15. Complements r’s complement of n-digit number N in base r is defined as r^n-N r^n-N = (r^n-1)-N+1 = (r-1)’s complement + 1
  • 19. Fixed Point Representation Sign bit placed in the leftmost position of the number determine if the number is positive or negative. It is 1 for negative and o for positive. In addition to sign bit a number may have decimal or binary point. There are two ways of specifying the position of the binary point in register.  By giving it fixed position  By employing floating point representation
  • 20. Fixed Point Representation The fixed point assumes one of the following case:  Binary point in the extreme left to make stored number fraction .  Binary point in extreme right to make the stored number an integer Floating point representation uses the second register to store a number that designates the position of the binary point.
  • 21. Fixed Point Representation When an integer binary number is positive, sign is represented by o and magnitude by positive binary number. When it is negative sign bit is represented by 1 and rest of the number can be represented in one of the following ways:  Signed-Magnitude Representation  Signed-1’s Complement Representation  Signed-2’s Complement Representation
  • 22. Fixed Point Representation There is only one way to represent +14(0 0001110) in 8-bit register. There are 3 different ways to represent -14 with 8 bits:  Signed Magnitude Representation: 1 0001110  Signed 1’s Complement Representation: 1 1110001  Signed 2’s Complement Representation: 1 1110010
  • 23. Fixed Point Representation The 1’s complement imposes difficulties because it has two representation of 0(+0[0000] and -0[1111]). It is seldom used in arithmetic operation except in some older compilers. It is useful in logical operation since change from 1to 0, 0 to 1 is equivalent to logical complement function.
  • 25. Fixed Point Representation Sometime there is need to convert the data from one bit length to another(4 bit to 8 bit etc.) This conversion is very simple to apply in case of signed magnitude representation, just shifting of the signed bit is required. But this method won’t be applicable in case of signed 2’complement. In the case of 2’s complement representation, the process called sign extension is implemented.
  • 29. Arithmetic Addition Adding the numbers in signed 2’s complement system require only addition and complementation.  Add the two numbers, including their sign bits. Discard any carry out of the sign(leftmost) bit position. Note: Negative numbers must initially be in 2’s complement and if the sum obtained after the addition is negative it is in 2’s complement form.
  • 31. Arithmetic Subtraction 2’s complement subtraction includes following steps:  Take the 2’s complement of number to be subtracted including the sign bit.  Add it the next number.  Discard the carry out of the sign bit position
  • 32. Arithmetic Subtraction -6-(-13)=+7 -6 2’s complement of -13 11111010 00001101 00000111
  • 33. Floating Point Representation With a fixed point notation it is possible to represent a range of positive and negative integers centered on 0. This approach has limitation. Very large nor can very small fractions can be represented. In decimal numbers we use scientific notation to represent very large and very small numbers. Same approach can be used to represent binary numbers.
  • 34. Floating Point Representation We can represent the number in the form
  • 36. Floating Point Representation Left most bit stores the sign of the number The exponent value is stored in the next 8 bits using the biased representation. In this representation, to obtain the actual exponent a value called bias subtracted is subtracted from the field. Typical value for bias is 2^(k-1)-1 where k is the number of bits. In this case biased value is 127.
  • 37. Floating Point Representation Final 23 bits portion is significand or mantissa. To simplified the operation, it is required that it is normalized. For our example a normalized nonzero number is one in the form. Where b is either 0 or 1
  • 39. Floating Point Representation Floating point representation is defined in IEEE Standard 754. It defines both 32 bit single and 64 bit double format with 8-bit and 16 bit exponent.
  • 40. Overflow When two numbers of n digits each are added and sum occupies (n+1) digits, we say that an overflow occur. In many computers when overflow occurs, corresponding flag is set which is later checked by the user. When two unsigned numbers are added, an overflow is detected from the end carry out of the most significant position.
  • 41. Overflow In case of signed number overflow condition can be detected by observing the carry into the sign bit position and carry out of the sign bit position. If these two carries aren’t equal, an overflow condition is produced. If two carries are applied to exclusive-OR gate, an overflow will be detected when output of the gate is equal to 1.