Preview

Numerical Precision

Good Essays
Open Document
Open Document
1181 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Numerical Precision
1. Analyze the floating point format
IEEE Standard for Binary Floating-Point Arithmetic (IEEE 754) is the most widely-used standard for floating-point computation, and is followed by many CPU and FPU implementations. The standard defines formats for representing floating-point numbers and special values together with a set of floating-point operations that operate on these values. It also specifies four rounding modes and five exceptions (Michael L Overton).
2. How floating point numbers are stored in memory
An IEEE-754 float (4 bytes) or double (8 bytes) has three components (there is also an analogous 96-bit extended-precision format under IEEE-854): a sign bit telling whether the number is positive or negative, an exponent giving its order of magnitude, and a mantissa specifying the actual digits of the number. Using single-precision floats as an example, here is the bit layout: seeeeeeeemmmmmmmmmmmmmmmmmmmmmmm meaning
31 0 bit # s = sign bit, e = exponent, m = mantissa
In the internal representation, there is 1 bit for the sign (S), 8 bits for the exponent (E), and 23 bits for the mantissa (m). The number is stored as follows, with high memory to the right: Byte 0 Byte 1 Byte 2 Byte 3
00000000 11111100 22221111 33222222
76543210 54321098 32109876 10987654
FFFFFFFF FFFFFFFF EFFFFFFF SEEEEEEE

3. The difficulty of manipulating and using floating point numbers in c calculations
There are two reasons why a real number might not be exactly represented as a floating-point number. The most common situation is illustrated by the decimal number 0.1. Although it has a finite decimal representation, in binary it has an infinite repeating representation. Thus when β = 2, the number 0.1 lies strictly between two floating-point numbers and is exactly represented by neither of them (Cleve Moler).
Floating-point

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Nt1310 Unit 3 Maths

    • 552 Words
    • 3 Pages

    When multiplication and division is performed answers are rounded to the number of digits that corresponds to the least number of sig. figs in any of the numbers used in the calculation.…

    • 552 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    SD1230 Lab 1

    • 239 Words
    • 2 Pages

    1. What happens to the volatile memory when the power is lost? –RAM is deleted…

    • 239 Words
    • 2 Pages
    Satisfactory Essays
  • Powerful Essays

    Nt1330 Unit 3 Assignment 1

    • 2019 Words
    • 9 Pages

    Subnetting IP Addressing • Internet Protocol (IP) • A unique indentifier for a host, or node, on an IP network • 32-bit binary number, usually expressed as 4 “dotted decimal” values. • Each decimal value represents 8 bits, in the range of 0 to 255 Example 140.179.220.200 140 Written in binary form: .179 .220 .200…

    • 2019 Words
    • 9 Pages
    Powerful Essays
  • Good Essays

    Nt1310 Unit 6 Lab Report

    • 624 Words
    • 3 Pages

    For example, when multiplying 150.0 x 8.2453, the calculator will say the answer is 1236.795. However, the least precise piece of data (150.0) has only 4 significant figures, so the answer will reflect that. Therefore, the answer is rounded to 4 significant figures and would be reported as 1236.…

    • 624 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Nt1310 Unit 1 Test Paper

    • 746 Words
    • 3 Pages

    We are running programs on a machine where values of type int have a 32-…

    • 746 Words
    • 3 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
  • Powerful Essays

    Nt1330 Unit 1 Research Paper

    • 4285 Words
    • 18 Pages

    Each character requires one byte as it is usually stored as an ASCII character. Notice that a digit such as 8 could be held as either a character, an integer or even a real. If any calculations are going to take place on the value then it should be held as either an integer or a real. If the calculation will never result in it being extremely large or gaining decimal places then an integer should be used.…

    • 4285 Words
    • 18 Pages
    Powerful Essays
  • Satisfactory Essays

    The bit pattern 1011 in 1’s complement notation is 7. The result of 7 – 2 using 2’s complement notation is 8. The bit pattern 1110 in 2’s complement notation is 9. The range of numbers that can be represented using the Excess-2N-1 notation is _________.…

    • 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?…

    • 605 Words
    • 3 Pages
    Good Essays
  • Good Essays

    The Pentium Flaw

    • 626 Words
    • 3 Pages

    Professor Thomas Nicely sent an email describing the flaw that he had discovered in the Pentium floating point unit (FPU) to various contacts, requesting reports of testing for the flaw on the 486-DX4s, Pentium and the Pentium clones. The flaw in the Pentium FPU (floating-point unit) was quickly verified by other people around the Internet, and became known as the Pentium FDIV bug (FDIV is the x86 assembly language instruction for floating point division). An example of the flaw was found where the division result returned by the Pentium microprocessor was off by about 61 parts per million.…

    • 626 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Compter Science

    • 819 Words
    • 4 Pages

    After we normalize a number, its first significant digit is immediately to the left of the binary point.…

    • 819 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Hmc Portfolio

    • 326 Words
    • 2 Pages

    2Notice that Exhibit 6 reports only one decimal and so you should _nd the second…

    • 326 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Pentium Micro Flaw

    • 732 Words
    • 3 Pages

    Several software packages, including many that do use floating-point numbers, do not actually use a computer’s FPU. These packages fail to show the error. Certain numbers, whose binary representation shows specific bit patterns, divide incorrectly. This is the reason why many users never encountered the division error.…

    • 732 Words
    • 3 Pages
    Good Essays
  • Satisfactory Essays

    Scientific Notation

    • 298 Words
    • 2 Pages

    * Multiply by a power of 10, equal to the number of places the decimal point has been moved.…

    • 298 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    Numerical Problems

    • 746 Words
    • 3 Pages

    Yashika Limited manufactures an automatic camera that currently sells at uS$90. Sales volume is about 2,000 cameras per month in a city. A close competitor, Minolta, has cut the price of a similar camera it makes from US$ 100 to US$80. Yashika’s economist has estimated the arc cross elasticity of demand between the two rival firms’ products at about 0.4, given current incomes and price levels.…

    • 746 Words
    • 3 Pages
    Good Essays

Related Topics