Decimal Floating Point - Floating Point Arithmetic Operations

Floating Point Arithmetic Operations

The usual rule for performing floating point arithmetic is that the exact mathematical value is calculated, and the result is then rounded to the nearest representable value in the specified precision. This is in fact the behavior mandated for IEEE-compliant computer hardware, under normal rounding behavior and in the absence of exceptional conditions.

For ease of presentation and understanding, 7 digit precision will be used in the examples. The fundamental principles are the same in any precision.

Read more about this topic:  Decimal Floating Point

Famous quotes containing the words floating, point, arithmetic and/or operations:

    Writing prejudicial, off-putting reviews is a precise exercise in applied black magic. The reviewer can draw free- floating disagreeable associations to a book by implying that the book is completely unimportant without saying exactly why, and carefully avoiding any clear images that could capture the reader’s full attention.
    William Burroughs (b. 1914)

    The realization that he is white in a black country, and respected for it, is the turning point in the expatriate’s career. He can either forget it, or capitalize on it. Most choose the latter.
    Paul Theroux (b. 1941)

    O! O! another stroke! that makes the third.
    He stabs me to the heart against my wish.
    If that be so, thy state of health is poor;
    But thine arithmetic is quite correct.
    —A.E. (Alfred Edward)

    There is a patent office at the seat of government of the universe, whose managers are as much interested in the dispersion of seeds as anybody at Washington can be, and their operations are infinitely more extensive and regular.
    Henry David Thoreau (1817–1862)