Preview

Errors in Computer Arithmetic

Good Essays
Open Document
Open Document
914 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Errors in Computer Arithmetic
Errors in Computer Arithmetic

Computer Arithmetic: 1. Integer arithmetic:

Virtually all the computer offer integer arithmetic. The two properties of integer arithmetic are as follows a) Result of any arithmetic operation is an integer b) Result is always exact with two exceptions • Range of integer that can be represented is not infinite but is bounded above and below. • The result of the division operation is given as the combination of the quotient and the remainder. Remainder of the result is always truncated. 2. Floating point arithmetic

Due to economic consideration, computers are designed such that each location in memory at stores only a finite number of digits. For example, A computer has a memory in which each location can store one or more signs. There are two methods for representing the real numbers.

Assume a fix position for decimal point and store all number (after appropriate shifting if necessary) with assumed decimal point. If such convention is used, maximum and minimum numbers that can be stored are 9999.99 and 0.00001 respectively

Another convention aims to preserve the maximum no of significant digits. This representation is called normalized floating point mode of representation and storing real number. In this, real number is expressed as combination of mantissa and exponent. The mantissa is made lass than one greater that or equal to 0.1 exponent is power of 10 which multiplies mantissa. Memory location with 6 digit are divided in two parts, 4 digits for mantissa and 2 digits for exponent. While storing number the leading digit is mantissa is always made nonzero by appropriate shifting and adjusting the value of exponent.

Shifting the mantissa to left till its most significant digit is nonzero is called normalization. Normalization is useful to preserve the maximum number of useful digits. Maximum range for the number to represent in the

You May Also Find These Documents Helpful

  • Good Essays

    Pt1420 Unit 5 Study Guide

    • 2789 Words
    • 12 Pages

    Number system:-writing system for expressing numbers i.e. it is a notation for representing numbers of a given set ,using digits or other symbols in a consistent manner. It will…

    • 2789 Words
    • 12 Pages
    Good Essays
  • Satisfactory Essays

    The range of values represented by an 8-bit binary number is _____. 4. The binary equivalent of 228 is _________. 5. The result of 7 – 2 using 1’s complement notation is 6.…

    • 4533 Words
    • 19 Pages
    Satisfactory Essays
  • Good Essays

    A user has opened a calculator application, typed the numbers 123456789, and then done some math problem using this number. Which of the following determines, in part, what bits the computer stores in RAM to represent the number 123456789?…

    • 957 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    1) Numbers can be represented in binary (using 2 symbols 0 and 1) and hexadecimal ( 16 symbols…

    • 480 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    CHAPTER3 REVEIW

    • 527 Words
    • 3 Pages

    7. Which of the following determines, in part, what bits the computer stores in RAM to represent the number 123456789?…

    • 527 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 7 Study Guide

    • 582 Words
    • 3 Pages

    Display it on the next line in decimal and the user if he or she wants to do it. Again if the user type ‘y’ or ‘Y’ the program repeats. If the user type anything else the program terminates. If the user types an illegal character, prompt the user to type again. Page: 115…

    • 582 Words
    • 3 Pages
    Satisfactory Essays
  • Better Essays

    Nt1310 Unit 1 Assignment

    • 1994 Words
    • 8 Pages

    5. Convert 32 decimal to binary floating point. Use a 6 bit mantissa and a 4 bit exponent.…

    • 1994 Words
    • 8 Pages
    Better Essays
  • Satisfactory Essays

    a) Convert 124 to its binary representation: 12410 = 011111002. Positive numbers are always represented by themselves.…

    • 1112 Words
    • 5 Pages
    Satisfactory Essays
  • Powerful Essays

    ECO206 final exam

    • 6971 Words
    • 57 Pages

    B wins (state B). Let wA be Lude’s wealth if team A wins, wB be his…

    • 6971 Words
    • 57 Pages
    Powerful Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    Any whole number that can be represented in base 10 can also be represented in base 2, although it may take ____ digits.…

    • 819 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Intro to Computers

    • 340 Words
    • 2 Pages

    What is the most important difference between a computer and a calculator? [RQ, no. 2]…

    • 340 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Obviously, presenting data in this form would invite error. For this reason we use the hexadecimal (base 16) and, to a lesser extent, the octal (base 8) number systems.…

    • 412 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Start with 1 2 4 8 16 32 64 128 (all for networking, or continues) 256 512 1024…

    • 284 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Real Numbers

    • 1186 Words
    • 5 Pages

    In mathematics, a real number is a value that represents a quantity along a continuum, such as 5 (an integer), 3/4 (a rational number that is not an integer), 8.6 (a rational number expressed in decimal representation), and π (3.1415926535..., an irrational number). As a subset of the real numbers, the integers, such as 5, express discrete rather than continuous quantities. Complex numbers include real numbers as a special case. Real numbers can be divided into rational numbers, such as 42 and −23/129, and irrational numbers, such as pi and the square root of two. A real number can be given by an infinite decimal representation, such as 2.4871773339..., where the digits continue indefinitely. The real numbers are sometimes thought of as points on an infinitely long line called the number line or real line.…

    • 1186 Words
    • 5 Pages
    Powerful Essays
  • Good Essays

    Essay on Number System

    • 1963 Words
    • 8 Pages

    he number theory or number systems happens to be the back bone for CAT preparation. Number systems not only form the basis of most calculations and other systems in mathematics, but also it forms a major percentage of the CAT quantitative section. The reason for that is the ability of examiner to formulate tough conceptual questions and puzzles from this section. In number systems there are hundreds of concepts and variations, along with various logics attached to them, which makes this seemingly easy looking topic most complex in preparation for the CAT examination. The students while going through these topics should be careful in capturing the concept correctly, as it’s not the speed but the concept that will solve the question here. The correct understanding of concept is the only way to solve complex questions based on this section.…

    • 1963 Words
    • 8 Pages
    Good Essays