~/talk

Everything you never wanted to know about JavaScript numbers

Talkat JSConf EU 2013 · 2013-09-14..09-15· [javascript, web-platform]
links:none on file
slides:none on file

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

  1. 0:00Intro
  2. 2:55ACMA script standard
  3. 4:43Binary representation
  4. 6:41Binary notation
  5. 9:52Offset binary notation
  6. 14:39Decimal fractions limitations
  7. 20:09Subnormal values
  8. 21:35Not a number
~/search
type to search 6,249 conferences, 138,987 speakers and 185,172 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.