~/talk

Demystifying Floating Point

Talkat CppCon 2015 · 2015-09-21..09-25· [machine-learning]
links:none on file
slides:none on file

Explains how IEEE floats are stored (sign/exponent/mantissa), demonstrates epsilon and relative error (pi shows ~2.8e-8 relative error), and details guard/round/sticky bits and rounding modes. Shows unstable algorithms: naive time-accumulation by adding small deltas drifts into tenths of a second over minutes, while a fixed-frame counter or integer ticks (fixed‑point) keeps correct time. Uses Google Test and code on GitHub, recommends compiler warnings, FP exceptions, FMA/SSE where available, and preferring stable algorithms or doubles for precision.

AI-written summary · about

  1. 0:00Introduction to floating point
  2. 2:52Floating point standards
  3. 6:23Floating point representation
  4. 10:44Precision and significant digits
  5. 14:07Floating point errors
  6. 16:42Rounding and rounding modes
  7. 21:16Stable algorithms for precision
  8. 24:31Floating point in simulations
  9. 30:32Mathematical identities and compiler assumptions
  10. 32:21Floating point exceptions
  11. 33:47Compiler warnings and optimizations
  12. 35:35Floating point tricks and testing
  13. 37:19Q&A session
~/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.