Everything you never wanted to know about JavaScript numbers
summary
Covers exactly how JavaScript stores numbers using double-precision IEEE 754, shows a small typed arrays bit dumper that prints the 64 bits, and demonstrates concrete surprises: 0.1 + 0.2 != 0.3, large integers where adding 1 has no effect once precision runs out. Explains why NaN exists as a specific bit pattern, why positive and negative zero are distinct, where subnormal values and infinities come from, and how exponent/significand tradeoffs create the gaps you see.
AI-written summary · about
chapters (8)
- 0:00Intro
- 2:55ACMA script standard
- 4:43Binary representation
- 6:41Binary notation
- 9:52Offset binary notation
- 14:39Decimal fractions limitations
- 20:09Subnormal values
- 21:35Not a number








