SlideShare une entreprise Scribd logo
1  sur  14
 
What are Real Numbers? Real Numbers include: ,[object Object],[object Object],[object Object],[object Object],15 3148 -27 2/7 99/100 14.75 0.000123 100.159 π √ 3 340.1155 22.9 In Computing, real numbers are also known as  floating point numbers
Standard Form Standard form is a scientific notation of representing numbers as a  base  number and an  exponent . Using this notation: The decimal number  8674.26  can be represented as 8.67426 x 10 3 , with  mantissa =  8.67426 ,   base =  10  and exponent =  3 The decimal number  753.34  can be represented as 7.5334 x 10 2 ,  with  mantissa =   7.5334 ,   base =  10  and exponent =  2 The decimal number  0.000634  can be represented as 6.34 x 10 -3 ,  with mantissa  =  6.34 ,   base =  10  and exponent =  -3 Any number can be represented in any number base in the form  m x b e
Floating Point Notation In floating point notation, the real number is stored as 2 separate bits of data A storage location called the  mantissa  holds the complete number without the point. A storage location called the  exponent  holds the number of places that the point must be moved in the original number to place it at the left hand side.
Floating Point Notation What is the exponent of  10110.110 ? The  exponent is 5 , because  the decimal point has to be moved 5 places to get it to the left hand side. The exponent would be represented as  0101  in binary
Floating Point Notation How would  10110.110  be stored using 8 bits for the mantissa and 4 bits for the exponent? We have already calculated that the  exponent is 5  or  0101 . 10110.110  =  10110110  x  2 5   =  10110110  x  2 0101 It is not necessary to store the ‘x’ sign or the base because it is always 2. Mantissa Exponent
Floating Point Notation How would  24.5  be stored  using  8 bits for the mantissa and 4 bits for the exponent?  In binary, the numbers after the decimal point have the following place values: 1/2  1/4  1/8  1/16  1/32  1/64  1/128 24  has the binary value  11000 0.5  (or  1/2 ) has the binary value  .1 24.5 = 0011000.1
Floating Point Notation How would  0011000.1  be stored using 8 bits for the mantissa and 4 bits for the exponent?
Floating Point Notation How would  0011000.1  be stored using 8 bits for the mantissa and 4 bits for the exponent? The exponent is 7 because decimal point has to move 7 places to the left 0011000.1  =  00110001  x  2 7   =  00110001  x  2 0111 Mantissa Exponent
Accuracy Store  110.0011001  in floating point representation, using 8 bits for the mantissa and 4 bits for the exponent. Mantissa Exponent The mantissa only holds 8 bits and so cannot store the last two bits These two bits cannot be stored in the system, and so they are forgotten. The number stored in the system is  110.00110  which is less accurate that its initial value.
Accuracy If the size of the  mantissa is increased  then the  accuracy  of the number held is  increased . Mantissa (10 bits) Exponent
Range If increasing the size of the mantissa increases the accuracy of the number held,  what will be the effect of increasing the size of the exponent? Using two bits for the exponent, the exponent can have the value  0-3 Mantissa Exponent (2 bits) This means the number stored can be in the range .00000000 (0)  to 111.11111 (7.96875)
Range Increasing the exponent to three bits, it can now store the values  0-7 Mantissa Exponent (3 bits) This means the number stored can be in the range .00000000 (0)  to 1111111.1 (127.5) If the size of the  exponent is increased  then the  range  of the number s which can be stored is  increased .
Credits ,[object Object],[object Object],[object Object],[object Object],[object Object]

Contenu connexe

Tendances

Tendances (20)

Properties of Real Numbers
Properties of Real NumbersProperties of Real Numbers
Properties of Real Numbers
 
Integers
IntegersIntegers
Integers
 
Number systems
Number systemsNumber systems
Number systems
 
9. lesson 8 order of operations
9. lesson 8 order of operations9. lesson 8 order of operations
9. lesson 8 order of operations
 
Absolute values
Absolute valuesAbsolute values
Absolute values
 
Heap
HeapHeap
Heap
 
Dividing integers
Dividing integersDividing integers
Dividing integers
 
Square root
Square rootSquare root
Square root
 
Decimals
DecimalsDecimals
Decimals
 
Properties of Operations in Integers Education
Properties of Operations in Integers Education Properties of Operations in Integers Education
Properties of Operations in Integers Education
 
Sets
SetsSets
Sets
 
Properties of operations
Properties of operationsProperties of operations
Properties of operations
 
Number problem
Number problemNumber problem
Number problem
 
Types of number
Types of numberTypes of number
Types of number
 
Adding and subtracting fractions with like denominators
Adding and subtracting fractions with like denominatorsAdding and subtracting fractions with like denominators
Adding and subtracting fractions with like denominators
 
Basic of number system
Basic of number systemBasic of number system
Basic of number system
 
Numerical expressions.
Numerical expressions.Numerical expressions.
Numerical expressions.
 
Number system.pdf
Number system.pdfNumber system.pdf
Number system.pdf
 
Solving One Step Inequalities
Solving One Step InequalitiesSolving One Step Inequalities
Solving One Step Inequalities
 
Rearranging Formulas
Rearranging FormulasRearranging Formulas
Rearranging Formulas
 

En vedette

Fixed-point arithmetic
Fixed-point arithmeticFixed-point arithmetic
Fixed-point arithmeticDavid Bařina
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbersMOHAN MOHAN
 
Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...
Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...
Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...Silicon Mentor
 
Decimal arithmetic in Processors
Decimal arithmetic in ProcessorsDecimal arithmetic in Processors
Decimal arithmetic in ProcessorsPeeyush Pashine
 
Optimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGAOptimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGADr. Pushpa Kotipalli
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representationgavhays
 
Design and Implementation of High Speed Area Efficient Double Precision Float...
Design and Implementation of High Speed Area Efficient Double Precision Float...Design and Implementation of High Speed Area Efficient Double Precision Float...
Design and Implementation of High Speed Area Efficient Double Precision Float...IOSR Journals
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationRitu Ranjan Shrivastwa
 
Properties real numbers basic
Properties real numbers basicProperties real numbers basic
Properties real numbers basicBitsy Griffin
 

En vedette (20)

Data representation
Data representationData representation
Data representation
 
Fixed-point arithmetic
Fixed-point arithmeticFixed-point arithmetic
Fixed-point arithmetic
 
Fixed point and floating-point numbers
Fixed point and  floating-point numbersFixed point and  floating-point numbers
Fixed point and floating-point numbers
 
06 floating point
06 floating point06 floating point
06 floating point
 
Class10
Class10Class10
Class10
 
Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...
Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...
Design and Implementation of Single Precision Pipelined Floating Point Co-Pro...
 
Decimal arithmetic in Processors
Decimal arithmetic in ProcessorsDecimal arithmetic in Processors
Decimal arithmetic in Processors
 
SD & D Real Numbers
SD & D Real NumbersSD & D Real Numbers
SD & D Real Numbers
 
Optimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGAOptimized Floating-point Complex number multiplier on FPGA
Optimized Floating-point Complex number multiplier on FPGA
 
Integer Representation
Integer RepresentationInteger Representation
Integer Representation
 
Design and Implementation of High Speed Area Efficient Double Precision Float...
Design and Implementation of High Speed Area Efficient Double Precision Float...Design and Implementation of High Speed Area Efficient Double Precision Float...
Design and Implementation of High Speed Area Efficient Double Precision Float...
 
The Real Numbers
The Real NumbersThe Real Numbers
The Real Numbers
 
real numbers
real numbersreal numbers
real numbers
 
Respiration
Respiration Respiration
Respiration
 
Quick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representationQuick tutorial on IEEE 754 FLOATING POINT representation
Quick tutorial on IEEE 754 FLOATING POINT representation
 
Properties real numbers basic
Properties real numbers basicProperties real numbers basic
Properties real numbers basic
 
Real Number System
Real Number SystemReal Number System
Real Number System
 
Math Project
Math ProjectMath Project
Math Project
 
Real numbers
Real numbersReal numbers
Real numbers
 
Real numbers
Real numbersReal numbers
Real numbers
 

Similaire à Real Numbers: Whole, Rational, Irrational and their Floating Point Representation

Similaire à Real Numbers: Whole, Rational, Irrational and their Floating Point Representation (20)

Floating Point Representation premium.pptx
Floating Point Representation premium.pptxFloating Point Representation premium.pptx
Floating Point Representation premium.pptx
 
Floating point representation
Floating point representationFloating point representation
Floating point representation
 
Ch 4
Ch 4Ch 4
Ch 4
 
Number system part 1
Number  system part 1Number  system part 1
Number system part 1
 
Number System.pptx
Number System.pptxNumber System.pptx
Number System.pptx
 
SD & D Negative Numbers
SD & D Negative NumbersSD & D Negative Numbers
SD & D Negative Numbers
 
09 Arithmetic
09  Arithmetic09  Arithmetic
09 Arithmetic
 
Lesson 1 basic theory of information
Lesson 1   basic theory of informationLesson 1   basic theory of information
Lesson 1 basic theory of information
 
Lesson 1 basic theory of information
Lesson 1   basic theory of informationLesson 1   basic theory of information
Lesson 1 basic theory of information
 
Floating point presentation
Floating point presentationFloating point presentation
Floating point presentation
 
Number System
Number SystemNumber System
Number System
 
Chapter 6
Chapter 6Chapter 6
Chapter 6
 
Number+system (1)
Number+system (1)Number+system (1)
Number+system (1)
 
Number systems and conversions
Number systems and conversionsNumber systems and conversions
Number systems and conversions
 
decimals-comp-packet.pdf
decimals-comp-packet.pdfdecimals-comp-packet.pdf
decimals-comp-packet.pdf
 
Chapter two FHI.pptx
Chapter two FHI.pptxChapter two FHI.pptx
Chapter two FHI.pptx
 
Integers
IntegersIntegers
Integers
 
Number system
Number systemNumber system
Number system
 
chapter one && two.pdf
chapter one && two.pdfchapter one && two.pdf
chapter one && two.pdf
 
Representation of Negative Numbers
Representation of Negative NumbersRepresentation of Negative Numbers
Representation of Negative Numbers
 

Plus de Forrester High School (20)

Program Design
Program DesignProgram Design
Program Design
 
Database Evaluation
Database EvaluationDatabase Evaluation
Database Evaluation
 
Testing SQL
Testing SQLTesting SQL
Testing SQL
 
SQL
SQLSQL
SQL
 
Database Query Design
Database Query DesignDatabase Query Design
Database Query Design
 
Data Dictionary
Data DictionaryData Dictionary
Data Dictionary
 
Compound Keys
Compound KeysCompound Keys
Compound Keys
 
Entity Occurrence Diagrams
Entity Occurrence DiagramsEntity Occurrence Diagrams
Entity Occurrence Diagrams
 
Entity Relationship Diagrams
Entity Relationship DiagramsEntity Relationship Diagrams
Entity Relationship Diagrams
 
Database Analysis
Database AnalysisDatabase Analysis
Database Analysis
 
Software Evaluation
Software EvaluationSoftware Evaluation
Software Evaluation
 
Software Testing
Software TestingSoftware Testing
Software Testing
 
Standard Algorithms
Standard AlgorithmsStandard Algorithms
Standard Algorithms
 
File Handling
File HandlingFile Handling
File Handling
 
Python Predefined Functions
Python Predefined FunctionsPython Predefined Functions
Python Predefined Functions
 
Python Substrings
Python SubstringsPython Substrings
Python Substrings
 
Variable Scope
Variable ScopeVariable Scope
Variable Scope
 
Sub-programs
Sub-programsSub-programs
Sub-programs
 
Records in Python
Records in PythonRecords in Python
Records in Python
 
Parallel arrays in python
Parallel arrays in pythonParallel arrays in python
Parallel arrays in python
 

Dernier

Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxthorishapillay1
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxnelietumpap1
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...Postal Advocate Inc.
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Jisc
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfphamnguyenenglishnb
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...Nguyen Thanh Tu Collection
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxChelloAnnAsuncion2
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptxSherlyMaeNeri
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONHumphrey A Beña
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfSpandanaRallapalli
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxAshokKarra1
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceSamikshaHamane
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxCarlos105
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parentsnavabharathschool99
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxHumphrey A Beña
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...JhezDiaz1
 

Dernier (20)

OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...OS-operating systems- ch04 (Threads) ...
OS-operating systems- ch04 (Threads) ...
 
Proudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptxProudly South Africa powerpoint Thorisha.pptx
Proudly South Africa powerpoint Thorisha.pptx
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
Q4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptxQ4 English4 Week3 PPT Melcnmg-based.pptx
Q4 English4 Week3 PPT Melcnmg-based.pptx
 
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
USPS® Forced Meter Migration - How to Know if Your Postage Meter Will Soon be...
 
Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...Procuring digital preservation CAN be quick and painless with our new dynamic...
Procuring digital preservation CAN be quick and painless with our new dynamic...
 
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdfAMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
AMERICAN LANGUAGE HUB_Level2_Student'sBook_Answerkey.pdf
 
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
HỌC TỐT TIẾNG ANH 11 THEO CHƯƠNG TRÌNH GLOBAL SUCCESS ĐÁP ÁN CHI TIẾT - CẢ NĂ...
 
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptxGrade 9 Q4-MELC1-Active and Passive Voice.pptx
Grade 9 Q4-MELC1-Active and Passive Voice.pptx
 
Judging the Relevance and worth of ideas part 2.pptx
Judging the Relevance  and worth of ideas part 2.pptxJudging the Relevance  and worth of ideas part 2.pptx
Judging the Relevance and worth of ideas part 2.pptx
 
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATIONTHEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
THEORIES OF ORGANIZATION-PUBLIC ADMINISTRATION
 
ACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdfACC 2024 Chronicles. Cardiology. Exam.pdf
ACC 2024 Chronicles. Cardiology. Exam.pdf
 
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
Model Call Girl in Tilak Nagar Delhi reach out to us at 🔝9953056974🔝
 
Karra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptxKarra SKD Conference Presentation Revised.pptx
Karra SKD Conference Presentation Revised.pptx
 
Roles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in PharmacovigilanceRoles & Responsibilities in Pharmacovigilance
Roles & Responsibilities in Pharmacovigilance
 
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptxBarangay Council for the Protection of Children (BCPC) Orientation.pptx
Barangay Council for the Protection of Children (BCPC) Orientation.pptx
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Choosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for ParentsChoosing the Right CBSE School A Comprehensive Guide for Parents
Choosing the Right CBSE School A Comprehensive Guide for Parents
 
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptxINTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
INTRODUCTION TO CATHOLIC CHRISTOLOGY.pptx
 
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
ENGLISH 7_Q4_LESSON 2_ Employing a Variety of Strategies for Effective Interp...
 

Real Numbers: Whole, Rational, Irrational and their Floating Point Representation

  • 1.  
  • 2.
  • 3. Standard Form Standard form is a scientific notation of representing numbers as a base number and an exponent . Using this notation: The decimal number 8674.26 can be represented as 8.67426 x 10 3 , with mantissa = 8.67426 , base = 10 and exponent = 3 The decimal number 753.34 can be represented as 7.5334 x 10 2 , with mantissa = 7.5334 , base = 10 and exponent = 2 The decimal number 0.000634 can be represented as 6.34 x 10 -3 , with mantissa = 6.34 , base = 10 and exponent = -3 Any number can be represented in any number base in the form m x b e
  • 4. Floating Point Notation In floating point notation, the real number is stored as 2 separate bits of data A storage location called the mantissa holds the complete number without the point. A storage location called the exponent holds the number of places that the point must be moved in the original number to place it at the left hand side.
  • 5. Floating Point Notation What is the exponent of 10110.110 ? The exponent is 5 , because the decimal point has to be moved 5 places to get it to the left hand side. The exponent would be represented as 0101 in binary
  • 6. Floating Point Notation How would 10110.110 be stored using 8 bits for the mantissa and 4 bits for the exponent? We have already calculated that the exponent is 5 or 0101 . 10110.110 = 10110110 x 2 5 = 10110110 x 2 0101 It is not necessary to store the ‘x’ sign or the base because it is always 2. Mantissa Exponent
  • 7. Floating Point Notation How would 24.5 be stored using 8 bits for the mantissa and 4 bits for the exponent? In binary, the numbers after the decimal point have the following place values: 1/2 1/4 1/8 1/16 1/32 1/64 1/128 24 has the binary value 11000 0.5 (or 1/2 ) has the binary value .1 24.5 = 0011000.1
  • 8. Floating Point Notation How would 0011000.1 be stored using 8 bits for the mantissa and 4 bits for the exponent?
  • 9. Floating Point Notation How would 0011000.1 be stored using 8 bits for the mantissa and 4 bits for the exponent? The exponent is 7 because decimal point has to move 7 places to the left 0011000.1 = 00110001 x 2 7 = 00110001 x 2 0111 Mantissa Exponent
  • 10. Accuracy Store 110.0011001 in floating point representation, using 8 bits for the mantissa and 4 bits for the exponent. Mantissa Exponent The mantissa only holds 8 bits and so cannot store the last two bits These two bits cannot be stored in the system, and so they are forgotten. The number stored in the system is 110.00110 which is less accurate that its initial value.
  • 11. Accuracy If the size of the mantissa is increased then the accuracy of the number held is increased . Mantissa (10 bits) Exponent
  • 12. Range If increasing the size of the mantissa increases the accuracy of the number held, what will be the effect of increasing the size of the exponent? Using two bits for the exponent, the exponent can have the value 0-3 Mantissa Exponent (2 bits) This means the number stored can be in the range .00000000 (0) to 111.11111 (7.96875)
  • 13. Range Increasing the exponent to three bits, it can now store the values 0-7 Mantissa Exponent (3 bits) This means the number stored can be in the range .00000000 (0) to 1111111.1 (127.5) If the size of the exponent is increased then the range of the number s which can be stored is increased .
  • 14.