
The $4.35 Item That Was Charged $4.34
Why 0.1 + 0.2 !== 0.3 in JavaScript, how floating-point math drops a cent when converting dollars to cents, and why money should be stored as integers.
Tag archive

Why 0.1 + 0.2 !== 0.3 in JavaScript, how floating-point math drops a cent when converting dollars to cents, and why money should be stored as integers.

I'm building an expense-splitting app for couples. Early on, I stored every amount as a double. It...
Introduction In the world of modern computing, where software runs across a diverse array...
Introduction: The Need for a Structured Database for Floating-Point Anomalies and Software...

TL;DR — The headline error bounds in this series carry machine-checked proof obligations across four...

TL;DR — Production deployments of the primitive (SCAMP, STUMPY) do not run the textbook sliding...

TL;DR — The streaming sliding-window inner-product kernel — the primitive deployed as the matrix...

TL;DR — There is an input on which round-to-nearest discards every increment, in the same direction,...

TL;DR — The deterministic error bound carries a global magnitude factor T★ — a single worst-case...
Introduction: The Sorting Dilemma in JavaScript Sorting is a deceptively simple problem....
https://www.youtube.com/watch?v=MFq97zUZvTs Every programmer hits it eventually. You type 0.1 + 0.2...
If you've spent any time programming, you've likely encountered this mind-bending phenomenon: 0.1...