Machine Epsilon - Values For Standard Hardware Floating Point Arithmetics

Values For Standard Hardware Floating Point Arithmetics

The following values of machine epsilon are encountered in practice.

IEEE 754 - 2008 Common name C++ data type Base Precision Machine epsilon C++ or Python formula Value
binary16 half precision not available 2 11 (one bit is implicit) 2 -11 pow (2, -11) 4.88e-04
binary32 single precision float 2 24 (one bit is implicit) 2 -23 pow (2, -23) 1.192e-07
binary64 double precision double 2 53 (one bit is implicit) 2 -52 pow (2, -52) 2.22e-16
binary80 extended precision _float80 2 64 2 -64 pow (2, -64) 5.42e-20
binary128 quad(ruple) precision _float128 2 113 (one bit is implicit) 2 -113 pow (2, -113) 9.63e-35
decimal32 single precision decimal _Decimal32 10 7 0.5 × 10 -6 pow (10, -6) / 2 5e-7
decimal64 double precision decimal _Decimal64 10 16 0.5 × 10 -15 pow (10, -15) / 2 5e-16
decimal128 quad(ruple) precision decimal _Decimal128 10 34 0.5 × 10 -33 pow (10, -33) / 2 5e-34

Read more about this topic:  Machine Epsilon

Famous quotes containing the words values, standard, hardware, floating and/or point:

    “... the loss of belief in future states is politically, though certainly not spiritually, the most significant distinction between our present period and the centuries before. And this loss is definite. For no matter how religious our world may turn again, or how much authentic faith still exists in it, or how deeply our moral values may be rooted in our religious systems, the fear of hell is no longer among the motives which would prevent or stimulate the actions of a majority.”
    —Hannah Arendt (1906–1975)

    “Liberty requires opportunity to make a living—a living decent according to the standard of the time, a living which gives a man not only enough to live by, but something to live for.”
    —Franklin D. Roosevelt (1882–1945)

    “A friend of mine spoke of books that are dedicated like this: “To my wife, by whose helpful criticism ...” and so on. He said the dedication should really read: “To my wife. If it had not been for her continual criticism and persistent nagging doubt as to my ability, this book would have appeared in Harper’s instead of The Hardware Age.””
    —Brenda Ueland (1891–1985)

    “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)

    “At this age [9–12], in contrast to adolescence, girls still want to know their parents and hear what they think. You are the influential ones if you want to be. Girls, now, want to hear your point of view and find out how you got to be what you are and what you are doing. They like their fathers and mothers to be interested in what they’re doing and planning. They like to know what you think of their thoughts.”
    —Stella Chess (20th century)