1. 1. Introduction
  2. 2. Tutorials
    1. 2.1. Basic usage
  3. 3. How to
    1. 3.1. Compare floating point numbers
    2. 3.2. Compare composite types
    3. 3.3. Interpret assert failure messages
    4. 3.4. Compare custom types
    5. 3.5. Derive the traits
    6. 3.6. Manually implement the traits
  4. 4. Background
    1. 4.1. Float comparison algorithms
    2. 4.2. Resources
  5. 5. API documentation

Documentation for float_eq 1.0.1

Resources

An assortment of articles, papers and books that provide insight into how to approach floating point numerics and error analysis.

  • The Art of Computer Programming Vol. 2: Seminumerical Algorithms, p214-283 - on the accuracy of floating point.
  • Comparing Floating Point Numbers, 2012 Edition - the rest of this series is very good, too.
  • Converting Integers to Floats Using Hyperfocus
  • Demystifying Floating Point Precision
  • Floating-Point Questions Are Endless on stackoverflow.com
  • Floating point error
  • Float toy - a fantastic little demo page for gaining an insight into what the bits in a floating point number represent.
  • IEEE Standard 754 Floating Point Numbers
  • Interval arithmetic
  • Loss of significance
  • Miscalculating Area and Angles of a Needle-like Triangle
  • Numerical Computing with IEEE Floating Point Arithmetic
  • Numerical Stability
  • On the dynamical stability of Principia's modified Jool system
  • Posit: thin triangle other tricks (REVEALED!)
  • Round-off/Truncation Errors & Numerical Cancellation
  • Sterbenz lemma
  • Truncation error
  • What Every Computer Scientist Should Know About Floating-Point Arithmetic - a comprehensive mathematical treatment.
  • What Every Programmer Should Know About Floating-Point Arithmetic - a useful introductory guide with cheat sheets for common programming languages.
  • What is Numerical Stability?
  • Why 0.1 Does Not Exist In Floating-Point