Double the Beyoncé: Navigating Numbers in JavaScript
summary
Explains that JavaScript uses IEEE-754 floating point so 0.1 + 0.2 ≠ 0.3, and that numeric IDs above Max Safe Integer ~9 quadrillion lose uniqueness; shows a real bug where two different artist records collapse into one (double Beyoncé) because the runtime rounds large integers and the framework reuses the same cached resource. Fix is to switch IDs to UUIDs and to use the new BigInt primitive for truly large integers — demoed as working in current browsers but not yet universal.
AI-written summary · about








