More Floating Point Alternatives
Summary
This article explains various software-based alternatives to floating-point arithmetic, including decimal floating point, fractions, symbolic computation, interval arithmetic, and binary-coded decimal.
View Cached Full Text
Cached at: 09/22/26, 03:48 AM
Similar Articles
Adding Floating-Point Decimals for Fun and Profit
This article explains the rounding errors in decimal calculations with floating-point numbers in programming, using Python examples to illustrate the patterns that emerge from IEEE double-precision floats.
@CompSciFact: Floating point numbers are a leaky abstraction
An article explaining why floating point numbers are a leaky abstraction, covering precision limits, subtraction issues, and overflow/underflow, with references to Goldberg's classic paper.
Float and integer arithmetic follow two different paradigms
博客文章指出整数与浮点算术遵循不同范式:整数运算需在灾难发生前预防溢出,而 IEEE-754 浮点运算中的 NaN 与无穷值会自然传播,不应照搬预防式检查(如用零分母或 FLT_EPSILON 守卫),这些检查在多数场景下无效且被 LLM 频繁写错。
Intermediate Floating-Point Precision
This article explores how intermediate floating-point precision in C++ code depends on compiler settings, CPU flags, and architecture, particularly on x87 FPU, and how this affects performance and calculation results.
Moving integer division to floating-point is trivial
A technical blog post explains how to perform integer division and remainder using floating-point division and fused multiply-add, with constraints on operand bit widths, and discusses practical considerations for SIMD and rounding modes.