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:

    Gradually the village murmur subsided, and we seemed to be embarked on the placid current of our dreams, floating from past to future as silently as one awakes to fresh morning or evening thoughts.
    Henry David Thoreau (1817–1862)

    ... there is no point in being realistic about here and now, no use at all not any, and so it is not the nineteenth but the twentieth century, there is no realism now, life is not real it is not earnest, it is strange which is an entirely different matter.
    Gertrude Stein (1874–1946)

    ‘Tis no extravagant arithmetic to say, that for every ten jokes,—thou hast got an hundred enemies; and till thou hast gone on, and raised a swarm of wasps about thine ears, and art half stung to death by them, thou wilt never be convinced it is so.
    Laurence Sterne (1713–1768)

    Plot, rules, nor even poetry, are not half so great beauties in tragedy or comedy as a just imitation of nature, of character, of the passions and their operations in diversified situations.
    Horace Walpole (1717–1797)