DigiNews

Tech Watch by Johan Denoyer

← Back to articles

Intuitive equals familiar

Quality: 8/10 Relevance: 9/10

Summary

This blog post explores the subtle behavior of double-precision floating-point arithmetic when summing decimals (e.g., 0.1 + 0.2). It explains ulp, the hidden bit, and rounding quirks that cause surprising results, then generalizes to the sum of two numbers and introduces error-free transformations (2Sum, Veltkamp splitting, Dekker product) with practical code snippets to reason about and reduce floating-point errors.

🚀 Service construit par Johan Denoyer