Preview

Research on Floating Point

Good Essays
Open Document
Open Document
1717 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Research on Floating Point
Student name : Lê Đình Phương
Student ID : 1151030
Class : 11CTT

Report on
REPRENSENTATION OF THE FLOATING POINT NUMBER
REPRENSENTATION OF THE FLOATING POINT NUMBER

Reference Materials: 1. Wikipedia Encyclopedia 2. Computer Organization and Design (David A. Paterson)

I. INTRODUCTION:
In computer science, we have unsigned and signed integer to represent the integer number, however, it only could be represent the number from 0 to 232-1 (from -231 to 231-1 with the signed one) and it also cannot express the number with fractional part such as 12.345. In brief, people need a kind of data can provide a huge range in value and can let them represent the fractional number. In C++ programing, we must deal with the “Float” number frequently, but we don’t know much about the inside structure. This report is going to represent internal structure and how floating point number works. II. STRUCTURE OF A FLOATING POINT NUMBER: 1. Ideal about the floating point:
The main purpose of type of data is that it provides very large, very small values and lets you represent fractional numbers. Let’s consider an example on math:
191,350,000,000,000 = 1.9135 x 1014
-0.000 000 000 019 135 = -1.9135 x 10-11
Thus all the number can be expressed with a base value and a scaling factor. The scaling factor plays role in moving the decimal point so that the name of “floating point” number is originated from this. With the float number in C++, the computer stores a value in three parts: one represents the precision of value, the other part scales that shows the range of value and other part is the sign of value. Sign | Exponent | Significand | 1 bit m bits n bits
In additional, we need to face to another problem. In math, there are many ways to represent a number such as
123.456 = 12.3456 x 1001 = 1.23456 x 1002 = 0.123456 x 10-01
So we must have a rule to represent all the numbers. This

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Real Gd Lit

    • 407 Words
    • 2 Pages

    may sometimes use numbers to represent the alphabet; for example: 2=B, 7=G, and 4=D (BGD)…

    • 407 Words
    • 2 Pages
    Satisfactory Essays
  • 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

    a. Write a C++ function named fracpart() that returns the fractional part of any number…

    • 720 Words
    • 3 Pages
    Satisfactory 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
  • Powerful Essays

    ● Converts the value of i to double and stores it in d. This conversion is done automatically by the compiler, because double data type is normally wider than int, there is absolutely no risk storing int in double.…

    • 2338 Words
    • 10 Pages
    Powerful 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

    Pt1420 Unit 1 Assignment 2

    • 1305 Words
    • 6 Pages

    Das, D., Gregersen, E., Hosch, L., Lotha, G., Sampaolo, M., Sinha, S. (2014). C++. In Encyclopedia Britannica.…

    • 1305 Words
    • 6 Pages
    Powerful Essays
  • Powerful Essays

    Unit 18 - Database P1, M1

    • 995 Words
    • 4 Pages

    Data type is the type of content and it decides the content can be input and the file size.…

    • 995 Words
    • 4 Pages
    Powerful Essays
  • Powerful Essays

    EAS230Syllabus

    • 1748 Words
    • 8 Pages

    C++ programming: editing, compiling, user I/O, variables (ints, doubles, char, strings, booleans), loops, decisions, functions, pointers, arrays, tables, databases, sorting.…

    • 1748 Words
    • 8 Pages
    Powerful Essays
  • Good Essays

    Hcs/438 Dq's

    • 1323 Words
    • 6 Pages

    Data is classified into four levels of measurement so the information is easy to follow and research. The measurements help researchers keep data organized, this also helps to keep the measurements accurate.…

    • 1323 Words
    • 6 Pages
    Good Essays
  • Better Essays

    Cyp 3.4 1.3

    • 1919 Words
    • 8 Pages

    Data can be presented in a number of ways, this is to make it easier and more interesting for whoever is looking at the data, for example its easier to show somebody a location on a map than to describe it in words, and this is the same with data. Certain data will be better expressed in words, but other data may only be understandable in a chart or graph format, so its important to consider which way the data is presented, so the reader is more capable of understanding it.…

    • 1919 Words
    • 8 Pages
    Better Essays
  • Powerful Essays

    ➢ communicate about numeracy in ways that suits and supports the intended audience, and recognises such use by others…

    • 3070 Words
    • 13 Pages
    Powerful Essays
  • Satisfactory Essays

    a. Students will demonstrate the meaning of multiplication and division of whole numbers through the use of a variety of representations.…

    • 1022 Words
    • 5 Pages
    Satisfactory Essays
  • Good Essays

    In June, 1994 the media came out with a story that one of Intel’s Pentium microprocessors had a floating point unit flaw (FPU). This flaw had to do with a math calculation that gave out wrong number after you put in an equation. The story about this flaw came to light after Professor by the name of Thomas Nicely, who was a mathematics professor at Lynchburg collage. Nicely was trying to compute the sum of a reciprocal of a large group of prime numbers on his Pentium based computer. When he checked the results they were different by a large amount from the theoretical values. By running the same test program on a different computer with a 486CPU, he came up with the right numbers this lead him to be able to track down the error to the Pentium itself. After finding the problem Nicely send out an email to Intel describing the problem that he had come across in his test. The email stated that there was a flaw in the Pentium floating point unit (FPU). With no response back from Intel Nicely posted a general notice on the internet asking people to confirm his findings. When the media got wind of this story Nicely did some magazine and T.V interviews about what his test resolute showed him. The flaw in the Pentium flaw was not an isolated incident the flaw was quickly verified by other people around the world in the scientific community, which became referred to as the Pentium FDIV bug. When the story first broke Intel’s initial response was to deny that there was a kind of a problem with there chips. But as the information got out on the internet the public wanted action to be taken. So Intel had to retract there statement that there was nothing wrong, to stating that although there was indeed a flaw in its chips, the defect was so insignificant to the majority of users. The average user would never even notice a problem in the flawed chip and that an error is only likely to occur once in ever nine billion random floating point divide that an average spread sheet user…

    • 907 Words
    • 3 Pages
    Good Essays
  • Good Essays

    Numerical Precision

    • 1181 Words
    • 5 Pages

    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).…

    • 1181 Words
    • 5 Pages
    Good Essays