Tag
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.
This paper presents the design and end-to-end formal verification of IEEE-754 binary32 and bfloat16 arithmetic for ARCH HDL, a hardware description language intended for AI model generation. The operators are proven correctly rounded using a hybrid approach combining exhaustive SMT equivalence checking and Lean 4 proofs, with synthesizable SystemVerilog output.
This paper introduces ALP, a state-of-the-art lossless compression algorithm for IEEE 754 floating-point data, exploiting decimal and high-precision patterns. It achieved superior performance in decoding speed, compression ratio, and compression speed, earning the SIGMOD Best Artifact Award.
PHP and Lua's log function can produce non-monotonic results due to using different algorithms for base 10 (log10) and other bases (ln), leading to counterintuitive behavior where a larger base yields a larger logarithm.
FPTalks 2026 is a free online conference on August 6, 2026, featuring talks on floating-point arithmetic, numerical algorithms, and hardware number representations from researchers at leading institutions.
A DIY project building a calculator that uses panel voltmeters to display floating-point numbers, with a custom acrylic panel and CNC-machined lettering.
This article explores two unexpected behaviors of NaN in Python and Lua, where implicit assumptions about equality and comparison lead to surprising results like Python's list equality ignoring NaN's self-inequality and Lua's for-loops mishandling NaN as step or limit.
This paper introduces InterFLOPBench, a benchmark for evaluating LLMs on detecting floating-point errors in C code, finding that recent models achieve high F1-scores, though performance varies by error type.
A half-day tutorial at ISC High Performance 2026 on using compiler-assisted tools (FPChecker/LLVM) for floating-point error analysis and profiling in C/C++ scientific codes.
Die analysis of the Intel 8087 math coprocessor's fast bit shifter, exploring its architecture and role in floating-point operations.
A blog post explaining a counterintuitive optimization where using float division (DIVSD) instead of integer division (IDIVQ) yields faster performance on modern CPUs, with benchmarks and assembly analysis.
This article examines the performance and precision differences between Unity's Mathf and System.MathF in C#, revealing that Unity's Mono runtime often performs double-precision math even for float operations, with implications for performance optimization.
A detailed technical article comparing and benchmarking various Rust decimal crates, covering fixed-point vs floating-point and fixed vs arbitrary precision designs.
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.
A detailed reverse-engineering analysis of the 69-bit adder in Intel's 8087 floating-point coprocessor from 1980, explaining its fast carry techniques and role in computing transcendental functions.
This article reverse-engineers the 69-bit adder at the core of Intel's 8087 floating-point coprocessor from 1980, explaining its architecture and carry-chain techniques.
dMX is a differentiable mixed-precision quantization framework that learns optimal floating-point bit-width assignments per layer for LLMs, targeting the MXFP family of formats defined by the OCP standard. It uses continuous optimization with temperature-based annealing and a budget-aware regularization term, consistently outperforming KL-divergence heuristics on Llama, Qwen3, and SmolLM2 models.
The IEEE P3109 draft standard defines a parameterized family of binary floating-point formats and operations tailored for machine learning, supporting configurable width, precision, signedness, and infinities, along with extensive rounding modes including stochastic rounding and a novel scale-invariant approximation measure called kappa-approximation.
Setting temperature to 0 does not guarantee deterministic tool calls in agents due to batched inference causing floating-point reduction order shifts, leading to token flips and different actions under load.
The article compares two methods for normalizing RGB values (dividing by 255 vs 256) and explains the consequences for floating-point conversion and rounding, including uneven bin widths at the extremes.