Adding Floating-Point Decimals for Fun and Profit
Summary
An in-depth exploration of floating-point representation, rounding, and error analysis using Python and C examples. The post explains why 0.1 + 0.2 != 0.3, introduces ulp, error-free transformations, and practical methods (2Sum, Dekker) for precise numeric computations, with visuals and code snippets.