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:

    I myself have seen the floating ships
    And nothing will ever be the same
    The shouts,
    The harrowing voices within the house.
    I stand apart with an army:
    My mind is graven with ships.
    Hilda Doolittle (1886–1961)

    When raging love with extreme pain
    Most cruelly distrains my heart,
    When that my tears, as floods of rain,
    Bear witness of my woeful smart;
    When sighs have wasted so my breath
    That I lie at the point of death,
    Henry Howard, Earl Of Surrey (1517?–1547)

    Under the dominion of an idea, which possesses the minds of multitudes, as civil freedom, or the religious sentiment, the power of persons are no longer subjects of calculation. A nation of men unanimously bent on freedom, or conquest, can easily confound the arithmetic of statists, and achieve extravagant actions, out of all proportion to their means; as, the Greeks, the Saracens, the Swiss, the Americans, and the French have done.
    Ralph Waldo Emerson (1803–1882)

    It may seem strange that any road through such a wilderness should be passable, even in winter, when the snow is three or four feet deep, but at that season, wherever lumbering operations are actively carried on, teams are continually passing on the single track, and it becomes as smooth almost as a railway.
    Henry David Thoreau (1817–1862)