~/talk

Why 0.1+0.2 != 0.3, or the Mysterious World of Floating-Point Numbers

TalkinFrenchat Forum PHP 2020 · 2020-10-22..10-23· [software-architecture]
slides:none on file

Explains why decimal sums like 0.1+0.2 do not equal 0.3 due to floating-point representation and arithmetic. Covers how computers represent real numbers in binary (IEEE 754), the resulting rounding errors and pitfalls in PHP and similar languages, and practical implications for developers.

AI-written summary · about

  1. 0:00Introduction
  2. 1:251+0.2 != 0.3 problem
  3. 4:18Floating-point precision
  4. 6:24Binary representation
  5. 12:25Floats vs integers
  6. 14:13Floating limits
  7. 17:45Unexpected precision loss
  8. 18:47IEEE 754 standard
  9. 19:30Ariane 5 failure
  10. 24:08Patriot missile failure
  11. 30:533D calculations
  12. 32:38PHP floats experiment
  13. 33:20Database storage
  14. 35:05Data transmission
  15. 36:05Scientific use cases
  16. 37:49Money problems
  17. 39:34Solutions for money
  18. 40:38Alternatives to floats
  19. 41:42Java BigDecimal
  20. 42:02Conclusion
~/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.