SlideShare a Scribd company logo
Computer Representation of Numbers
 Digital computers are the principal means of calculation
in numerical analysis.
 Computers have an integer mode and a floating-point
mode for representing numbers.
 The integermode isused onlyto representintegers,The
floating-pointformisusedtorepresentrealnumbers.The
numbersallowedcanbe of greatlyvaryingsize,butthere
are limitationsonboththe magnitude of the numberand
on the number of digits.
 The floating-point representation is closely related to
what is called scientific notation.
 Most digital computers use the base 2 (binary) number
systemorsome variantof itsuch as base 8 (octal) orbase
16 (hexadecimal)
Floating-Point Number Systems
 Floating-point numbers are analogous to scientific
notation.
 The decimal pointfloatstothe positionrightafterthe
most significant digit.
 Like scientific notation, floating-point numbers have
a sign(S), mantissa (M), base (B), and exponent (E),
Example:
4100 = 4.1 × 103
is the decimal scientific notation
 a mantissa of 4.1
 a base of 10
 an exponent of 3
32 bitsFloating-PointNumbersused1signbit,8exponent
bits, and 23 mantissa bits.
Example:
Show the floating-point representation of the decimal
number 228.
Solution:
22810 = 111001002 = 1.110012 × 27.
 Inbinaryfloating-point,thefirstbitof themantissa(tothe
leftof the binarypoint)isalways1andthereforeneednot
be stored.
 It is called the implicit leading one.
Modified Floating-point
22810 = 1.110012
× 27
 The implicit leading one is not included in the 23-bit
mantissa for efficiency.
 Onlythe fractionbitsare stored.Thisfreesupanextrabit
for useful data.
 Computer manufacturers used incompatible floating-
point formats. Results from one computer could not
directly be interpreted by another computer.
 In 1985, The Institute of Electrical and Electronics
Engineers (IEEE) created the IEEE 754 Floating-Point
Standard that defines floating-point numbers.
 The exponent needsto represent both positive and
negative exponents.
 floating-point uses a biased exponent, which is the
original exponent plus a constant bias.
 32-bit floating-pointusesa biasof 127. For example,
for the exponent 7, the biasedexponent is 7 + 127 =
134 = 100001102. For the exponent −4, the biased
exponent is: −4 + 127 = 123 = 011110112.
 The IEEE 754 standard also defines 64-bit double-
precision numbers (also called doubles) and 128-bit
quadruple-precision numbers (also called quads) that
provide greater precision and greater range.
Special Cases: 0, ±∞, and NaN
 The IEEE floating-point standard has special cases to
represent numbers such as zero, infinity, and illegal
results.
 Representingthe numberzerois problematicinfloating-
point notation because of the implicit leading one.
 Special codes with exponents of all 0’s or all l’s are
reserved for these special cases.
NaN is used for numbers that don’t exist, such as √−1 or
log2(−5).
The decimal equivalent of a floating point number can be
calculated using the following formula:
Where s = 0 for + number and 1 for - number
e = exponent between 0 and 255
f= mantissa
Decimal Machine Numbers

More Related Content

PPT
DL&CO - Unit 1 PPT.ppt DL&CO - Unit 1 PPT.ppt DL&CO - Unit 1 PPT.ppt
PPT
Lec 02 data representation part 2
PPTX
Data Representation from knowledge center
PPT
PPT
PPT
Lesson 1 basic theory of information
PPT
Lesson 1 basic theory of information
PDF
chapter one && two.pdf
DL&CO - Unit 1 PPT.ppt DL&CO - Unit 1 PPT.ppt DL&CO - Unit 1 PPT.ppt
Lec 02 data representation part 2
Data Representation from knowledge center
Lesson 1 basic theory of information
Lesson 1 basic theory of information
chapter one && two.pdf

Similar to Numerical Analysis_Computer Representation of Numbers.docx (20)

PPTX
NUMBER SYSTEM.pptx
PDF
IEEE 754 FLOATING-POINT FORMAT AND ITS APPLICATION
PPTX
BEEE - Part B - Unit 3 - Digital Electronics PPT.pptx
PPTX
Data-and-Number-Representations CSE 101.pptx
PPTX
CSC304 - Digital Logic & Computer Organization and.pptx
PPTX
module 3,Boolean algebra and logic circuits .pptx
PPTX
Introduction to Computing
PDF
Java中的Float&Double以及Ieee754研究V1.0
PPTX
digital electronics conversion of number stystem in digital electronics
PPT
Data representation _
PPTX
Number Systems Lec and their conversions 1.pptx
PDF
International Journal of Engineering Research and Development
PDF
3. IEEE 754 FLOATING POINT For Comp. ORG.pdf
PPTX
Presentation of ICT.ppt.pptx
PPTX
Introduction to C Programming - R.D.Sivakumar
PDF
DLD Chapter-1.pdf
PPT
BEEE - Part B - Unit 3 PPT.ppt DL&CO - Unit 1 PPT.ppt
PPTX
Applications of ICT Lecture 3.pptxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...
PPTX
Wk3.pptx ICT INFORMATION COMMUNICATION TECHNOLOGY
PPTX
Chapter_Two.pptx data representation in computer
NUMBER SYSTEM.pptx
IEEE 754 FLOATING-POINT FORMAT AND ITS APPLICATION
BEEE - Part B - Unit 3 - Digital Electronics PPT.pptx
Data-and-Number-Representations CSE 101.pptx
CSC304 - Digital Logic & Computer Organization and.pptx
module 3,Boolean algebra and logic circuits .pptx
Introduction to Computing
Java中的Float&Double以及Ieee754研究V1.0
digital electronics conversion of number stystem in digital electronics
Data representation _
Number Systems Lec and their conversions 1.pptx
International Journal of Engineering Research and Development
3. IEEE 754 FLOATING POINT For Comp. ORG.pdf
Presentation of ICT.ppt.pptx
Introduction to C Programming - R.D.Sivakumar
DLD Chapter-1.pdf
BEEE - Part B - Unit 3 PPT.ppt DL&CO - Unit 1 PPT.ppt
Applications of ICT Lecture 3.pptxjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj...
Wk3.pptx ICT INFORMATION COMMUNICATION TECHNOLOGY
Chapter_Two.pptx data representation in computer
Ad

More from admercano101 (9)

PPTX
Data Communication 1
PPTX
Analytic geometry lecture2
PPT
Analytic geometry lecture1
PPT
Limits
PPT
Digital Communication 2
PPTX
Fiber optics101
PDF
Trigonometry101
PPTX
Digital Communication 1
PPT
Digital Communication 4
Data Communication 1
Analytic geometry lecture2
Analytic geometry lecture1
Limits
Digital Communication 2
Fiber optics101
Trigonometry101
Digital Communication 1
Digital Communication 4
Ad

Recently uploaded (20)

PDF
Abdominal Access Techniques with Prof. Dr. R K Mishra
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PDF
01-Introduction-to-Information-Management.pdf
PDF
TR - Agricultural Crops Production NC III.pdf
PDF
Pre independence Education in Inndia.pdf
PDF
Basic Mud Logging Guide for educational purpose
PDF
RMMM.pdf make it easy to upload and study
PPTX
Renaissance Architecture: A Journey from Faith to Humanism
PDF
Anesthesia in Laparoscopic Surgery in India
PPTX
PPH.pptx obstetrics and gynecology in nursing
PDF
2.FourierTransform-ShortQuestionswithAnswers.pdf
PDF
Computing-Curriculum for Schools in Ghana
PDF
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
O7-L3 Supply Chain Operations - ICLT Program
PPTX
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
PDF
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PPTX
Pharma ospi slides which help in ospi learning
PDF
Classroom Observation Tools for Teachers
Abdominal Access Techniques with Prof. Dr. R K Mishra
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
01-Introduction-to-Information-Management.pdf
TR - Agricultural Crops Production NC III.pdf
Pre independence Education in Inndia.pdf
Basic Mud Logging Guide for educational purpose
RMMM.pdf make it easy to upload and study
Renaissance Architecture: A Journey from Faith to Humanism
Anesthesia in Laparoscopic Surgery in India
PPH.pptx obstetrics and gynecology in nursing
2.FourierTransform-ShortQuestionswithAnswers.pdf
Computing-Curriculum for Schools in Ghana
3rd Neelam Sanjeevareddy Memorial Lecture.pdf
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
O7-L3 Supply Chain Operations - ICLT Program
school management -TNTEU- B.Ed., Semester II Unit 1.pptx
BÀI TẬP BỔ TRỢ 4 KỸ NĂNG TIẾNG ANH 9 GLOBAL SUCCESS - CẢ NĂM - BÁM SÁT FORM Đ...
Supply Chain Operations Speaking Notes -ICLT Program
Pharma ospi slides which help in ospi learning
Classroom Observation Tools for Teachers

Numerical Analysis_Computer Representation of Numbers.docx

  • 1. Computer Representation of Numbers  Digital computers are the principal means of calculation in numerical analysis.  Computers have an integer mode and a floating-point mode for representing numbers.  The integermode isused onlyto representintegers,The floating-pointformisusedtorepresentrealnumbers.The numbersallowedcanbe of greatlyvaryingsize,butthere are limitationsonboththe magnitude of the numberand on the number of digits.  The floating-point representation is closely related to what is called scientific notation.  Most digital computers use the base 2 (binary) number systemorsome variantof itsuch as base 8 (octal) orbase 16 (hexadecimal) Floating-Point Number Systems  Floating-point numbers are analogous to scientific notation.  The decimal pointfloatstothe positionrightafterthe most significant digit.  Like scientific notation, floating-point numbers have a sign(S), mantissa (M), base (B), and exponent (E), Example: 4100 = 4.1 × 103 is the decimal scientific notation  a mantissa of 4.1  a base of 10  an exponent of 3 32 bitsFloating-PointNumbersused1signbit,8exponent bits, and 23 mantissa bits. Example: Show the floating-point representation of the decimal number 228. Solution: 22810 = 111001002 = 1.110012 × 27.  Inbinaryfloating-point,thefirstbitof themantissa(tothe leftof the binarypoint)isalways1andthereforeneednot be stored.  It is called the implicit leading one. Modified Floating-point 22810 = 1.110012 × 27  The implicit leading one is not included in the 23-bit mantissa for efficiency.  Onlythe fractionbitsare stored.Thisfreesupanextrabit for useful data.  Computer manufacturers used incompatible floating- point formats. Results from one computer could not directly be interpreted by another computer.  In 1985, The Institute of Electrical and Electronics Engineers (IEEE) created the IEEE 754 Floating-Point Standard that defines floating-point numbers.  The exponent needsto represent both positive and negative exponents.  floating-point uses a biased exponent, which is the original exponent plus a constant bias.  32-bit floating-pointusesa biasof 127. For example, for the exponent 7, the biasedexponent is 7 + 127 = 134 = 100001102. For the exponent −4, the biased exponent is: −4 + 127 = 123 = 011110112.  The IEEE 754 standard also defines 64-bit double- precision numbers (also called doubles) and 128-bit quadruple-precision numbers (also called quads) that provide greater precision and greater range. Special Cases: 0, ±∞, and NaN
  • 2.  The IEEE floating-point standard has special cases to represent numbers such as zero, infinity, and illegal results.  Representingthe numberzerois problematicinfloating- point notation because of the implicit leading one.  Special codes with exponents of all 0’s or all l’s are reserved for these special cases. NaN is used for numbers that don’t exist, such as √−1 or log2(−5). The decimal equivalent of a floating point number can be calculated using the following formula: Where s = 0 for + number and 1 for - number e = exponent between 0 and 255 f= mantissa Decimal Machine Numbers