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:

    Here undoubtedly lies the chief poetic energy:Min the force of imagination that pierces or exalts the solid fact, instead of floating among cloud-pictures.
    George Eliot [Mary Ann (or Marian)

    If mothers are told to do this or that or the other,... they lose touch with their own ability to act.... Only too easily they feel incompetent. If they must look up everything in a book, they are always too late even when they do the right things, because the right things have to be done immediately. It is only possible to act at exactly the right point when the action is intuitive or by instinct, as we say. The mind can be brought to bear on the problem afterwards.
    D.W. Winnicott (20th century)

    Your discovery of the contradiction caused me the greatest surprise and, I would almost say, consternation, since it has shaken the basis on which I intended to build my arithmetic.... It is all the more serious since, with the loss of my rule V, not only the foundations of my arithmetic, but also the sole possible foundations of arithmetic seem to vanish.
    Gottlob Frege (1848–1925)

    You can’t have operations without screams. Pain and the knife—they’re inseparable.
    —Jean Scott Rogers. Robert Day. Mr. Blount (Frank Pettingell)