Decimal Floating Point

Decimal floating point arithmetic refers to both a representation and operations on decimal floating point numbers. Working directly with decimal (base 10) fractions can avoid the rounding errors that otherwise typically occur when converting between decimal fractions (common in human-entered data, such as measurements or financial information) and binary (base 2) fractions.

The advantage of decimal floating-point representation over decimal fixed-point and integer representation is that it supports a much wider range of values. For example, while a fixed-point representation that allocates eight decimal digits and two decimal places can represent the numbers 123456.78, 8765.43, 123.00, and so on, a floating-point representation with eight decimal digits could also represent 1.2345678, 1234567.8, 0.000012345678, 12345678000000000, and so on. This wider range can dramatically slow the accumulation of rounding errors during successive calculations; for example, the Kahan summation algorithm can be used in floating point to add many numbers with no asymptotic accumulation of rounding error.

Read more about Decimal Floating Point:  Implementations, IEEE 754-2008 Encoding, Floating Point Arithmetic Operations

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

    It makes little sense to spend a month teaching decimal fractions to fourth-grade pupils when they can be taught in a week, and better understood and retained, by sixth-grade students. Child-centeredness does not mean lack of rigor or standards; it does mean finding the best match between curricula and children’s developing interests and abilities.
    David Elkind (20th century)

    It is only for a little while, only occasionally, methinks, that we want a garden. Surely a good man need not be at the labor to level a hill for the sake of a prospect, or raise fruits and flowers, and construct floating islands, for the sake of a paradise. He enjoys better prospects than lie behind any hill. Where an angel travels it will be paradise all the way, but where Satan travels it will be burning marl and cinders.
    Henry David Thoreau (1817–1862)

    Parents who want a fresh point of view on their furniture are advised to drop down on all fours and accompany the nine or ten month old on his rounds. It is probably many years since you last studied the underside of a dining room chair. The ten month old will study this marvel with as much concentration and reverence as a tourist in the Cathedral of Chartres.
    Selma H. Fraiberg (20th century)