HackerTube.dev

Floating Point Numbers - Computerphile

Computerphile · 2.5M views · 2014-01-22 · 9:16

Open on YouTube ↗

If playback is restricted in your region, try opening the original video. Use Mark watched to add it to your marked videos.

Overview

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

On Hacker News

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

Recommended by 2 HN people across 2 months · HN mentions 2015–2023

Topics

Search by tags

What people said

microwavecamera · 2017-06 · Recommendation

Short answer, no decimal in binary and math is hard. :) Here's a couple handy videos explaining it: [VIDEO] [LINK]

Read the original HN comment ↗
felipesabino · 2015-11 · Recommendation

Recommended: Floating Point Numbers - Computerphile [VIDEO] Tom Scott's fun and simple take on Floating Points is a good video explaining why such weird errors happen

Read the original HN comment ↗
mercxry · 2023-10 · Reference

You should still not use MONEY in Postgres, even their own website says so [1]. I still wouldn't use floats/numerics/decimals to store currency either in any db generally, as said by others you're going to end up with inaccurate numbers [2]. Therefore using integers is in fact very good for this use-case, especially if you are in accounting or book-keeping! Source: I work for a Fintech company that processes millions of payments. [1] [LINK] [2] [VIDEO]

Read the original HN comment ↗

Sources

Video by Computerphile, played through YouTube.

Data and selection notes

HN summaries and labels may contain AI errors. HN dates refer to discussions, not video publication.

HN Library: HackerTube export (2026-10-31) and open-index/hacker-news. Upstream summaries and classifications may contain AI errors.

Views, duration and playback status refresh separately from the published catalog. When an update fails, existing data remains visible.

Selection checks
  • SaaS & AI candidates: Topic keywords do not match
  • Editor-approved picks: Editorial review is required

Rule matches identify candidates. They do not guarantee video quality or financial results.

About the library and its sources