Computer Science Engineering B.E.(4 th sem) c omputer system organization Topic-Floating and decimal arithmetic S ubmitted to– Prof. Shweta Agrawal Submitted.

Slides:



Advertisements
Similar presentations
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Advertisements

CS 447 – Computer Architecture Lecture 3 Computer Arithmetic (2)
Computer ArchitectureFall 2007 © September 5, 2007 Karem Sakallah CS 447 – Computer Architecture.
Major Numeric Data Types Unsigned Integers Signed Integer Alphanumeric Data – ASCII & UNICODE Floating Point Numbers.
Chapter 5 Floating Point Numbers. Real Numbers l Floating point representation is used whenever the number to be represented is outside the range of integer.
1 Module 2: Floating-Point Representation. 2 Floating Point Numbers ■ Significant x base exponent ■ Example:
Computer ArchitectureFall 2008 © August 27, CS 447 – Computer Architecture Lecture 4 Computer Arithmetic (2)
Computer Science 210 Computer Organization Floating Point Representation.
Lecture 8 Floating point format
Binary Number Systems.
School of Computer Science G51CSA 1 Computer Arithmetic.
Binary Representation and Computer Arithmetic
The Binary Number System
Simple Data Type Representation and conversion of numbers
Binary Real Numbers. Introduction Computers must be able to represent real numbers (numbers w/ fractions) Two different ways:  Fixed-point  Floating-point.
Information Representation (Level ISA3) Floating point numbers.
Computer Organization and Architecture Computer Arithmetic Chapter 9.
Computer Arithmetic Nizamettin AYDIN
Number Systems II Prepared by Dr P Marais (Modified by D Burford)
Dale Roberts Department of Computer and Information Science, School of Science, IUPUI CSCI 230 Information Representation: Negative and Floating Point.
Computer Architecture
Floating Point. Agenda  History  Basic Terms  General representation of floating point  Constructing a simple floating point representation  Floating.
Data Representation in Computer Systems
Floating Point (a brief look) We need a way to represent –numbers with fractions, e.g., –very small numbers, e.g., –very large numbers,
CH09 Computer Arithmetic  CPU combines of ALU and Control Unit, this chapter discusses ALU The Arithmetic and Logic Unit (ALU) Number Systems Integer.
9.4 FLOATING-POINT REPRESENTATION
CSC 221 Computer Organization and Assembly Language
1 Number Systems Lecture 10 Digital Design and Computer Architecture Harris & Harris Morgan Kaufmann / Elsevier, 2007.
CS 61C L3.2.1 Floating Point 1 (1) K. Meinz, Summer 2004 © UCB CS61C : Machine Structures Lecture Floating Point Kurt Meinz inst.eecs.berkeley.edu/~cs61c.
Computer Engineering FloatingPoint page 1 Floating Point Number system corresponding to the decimal notation 1,837 * 10 significand exponent A great number.
Dr Mohamed Menacer College of Computer Science and Engineering Taibah University CE-321: Computer.
COMPUTER SCIENCE Data Representation and Machine Concepts Section 1.7 Instructor: Lin Chen Sept 2013.
Fixed-point and floating-point numbers Ellen Spertus MCS 111 October 4, 2001.
Cosc 2150: Computer Organization Chapter 9, Part 3 Floating point numbers.
1 CE 454 Computer Architecture Lecture 4 Ahmed Ezzat The Digital Logic, Ch-3.1.
Chapter 9 Computer Arithmetic
Department of Computer Science Georgia State University
Fundamentals of Computer Science
Dr. Clincy Professor of CS
Introduction To Computer Science
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
William Stallings Computer Organization and Architecture 7th Edition
Topic 3d Representation of Real Numbers
Recent from Dr. Dan Lo regarding 12/11/17 Dept Exam
Number Representations
Dr. Clincy Professor of CS
Dr. Clincy Professor of CS
Approximations and Round-Off Errors Chapter 3
ECEG-3202 Computer Architecture and Organization
Floating Point Numbers
Recent from Dr. Dan Lo regarding 12/11/17 Dept Exam
COMS 161 Introduction to Computing
Topic 3d Representation of Real Numbers
Number Representations
Lecture 9: Shift, Mult, Div Fixed & Floating Point
Presentation transcript:

Computer Science Engineering B.E.(4 th sem) c omputer system organization Topic-Floating and decimal arithmetic S ubmitted to– Prof. Shweta Agrawal Submitted by- Shivani jyotiki Prabha pal Sandhya uikey

Contents  History  Basic terms  Real numbers  Floating representation  Floating point multiplication flowchart  Rounding and Errors

History  The first floating point representation was firstly used in “V1” machine (1945). It had 7- bit exponent, 16-bit mantissa, and a sign bit.  In 1954, floating point representation was used by IBM for the modern computing system.  In 1962, the UNIVAC 1100/2200 series was introduced. It contains single precision and double precision.

Computers are integer machines and are capable of representing real numbers only by using complex codes. The most popula code for reprasenting real numbers is called the IEEE FLOTING –POINT STANDARD. The floting point number is derived from the fact that there is no fixer number of digit before and after the decimal; That is, the decimal point can flot.if the no. of digit before and after the decimal point is set, called fixed point representation. Floting point is slower than fixed point.

Basic Terms  Scientific notation: A notation that renders numbers with a single digit to the left of the decimal point.  Normalized: A number in floating-point notation that has no leading 0s.  Floating point: Computer arithmetic that represents numbers in which the binary point is not fixed.  Fraction: The value, between 0 and 1, placed in the fraction field of the floating point.  Exponent: In the numerical representation system of floating-point arithmetic, the value that is placed in the exponent field.

Real Numbers  Two’s complement representation deal with signed integer values only.  Without modification, these formats are not useful in scientific or business applications that deal with real number values.  Floating-point representation solves this problem.

Floating-Point Representation  We introduce a hypothetical “Simple Model” to explain the concepts  In this model:  A floating-point number is 14 bits in length  The exponent field is 5 bits  The significand field is 8 bits

 Floating-point numbers allow an arbitrary number of decimal places to the right of the decimal point.  For example: 0.5  0.25 =  They are often expressed in scientific notation.  For example: = 1.25  ,000,000 = 5.0  10 6 Floating Point Representation

 Computers use a form of scientific notation for floating-point representation  Numbers written in scientific notation have three components:

Floating Point Multiplication flowchart

Rounding and Errors  Floating-point overflow and underflow can cause programs to crash.  Overflow occurs when there is no room to store the high-order bits resulting from a calculation.  Underflow occurs when a value is too small to store, possibly resulting in division by zero.