hackertube.io

Floating Point Numbers - Computerphile

Computerphile · explainer · Watch on YouTube

What it is

Tom Scott explains for Computerphile how floating point numbers work, why moving the binary point is fast, and why it handles money badly.

Why Hacker News recommends it

Recommended as a simple, fun explanation of why floating point gives odd errors like 0.1 + 0.2.

  • 2 people recommended it
  • 2 different months
  • 0 strong recommendations
  • first 2015, last 2023

What HN commenters said

  1. “Tom Scott's fun and simple take on Floating Points is a good video explaining why such weird errors happen”

    Fun, simple explanation of why floating point produces weird errors.

    felipesabino, 2015-11 · Recommendation · in “0.30000000000000004”

  2. “Here's a couple handy videos explaining it”

    Handy explanation of why decimals do not work cleanly in binary.

    microwavecamera, 2017-06 · Recommendation · in “Why do programming languages suck at math?”

Excerpts from Hacker News comments, linked to the originals. Summaries and labels were written by a language model from those comments.

Topics: floating point, ieee 754, binary, currency, computerphile

Also recommended by the same people