HackerTube
HomeLongsLikedHistoryWatch laterCategoriesPlaylistsSettings

Floating Point Numbers - Computerphile

Computerphile2 HN recommenders · recommended in 2 months, 2015-2023
YouTube
2.5M views · 12 years ago · explainer · evergreen

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

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

Computer architecture & CPUsInformation theory & signal processing#floatingpoint#ieee754#binary#currency#computerphile

3 comments from Hacker News

@mercxry2023 · in “Why you should probably be using SQLite”

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] ▶ this video

CitesView on HN
@microwavecamera2017 · in “Why do programming languages suck at math?”

Short answer, no decimal in binary and math is hard. :) Here's a couple handy videos explaining it: ▶ this video link

RecommendsView on HN
@felipesabino2015 · in “0.30000000000000004”

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

RecommendsView on HN
Stanford Seminar: Beyond Floating Point: Next Generation Computer Arithmetic1:31:28

Stanford Seminar: Beyond Floating Point: Next Generation Computer Arithmetic

Stanford Online
33K views • 9 years ago
An astonishing old calculator - Numberphile9:20

An astonishing old calculator - Numberphile

Numberphile
794K views • 8 years ago
The Great Debate @ARITH23: John Gustafson and William Kahan1:34:42

The Great Debate @ARITH23: John Gustafson and William Kahan

dancefan
4K views • 10 years ago
All the Numbers - Numberphile14:27

All the Numbers - Numberphile

Numberphile
1.8M views • 7 years ago
NaN Gates and Flip FLOPS19:08

NaN Gates and Flip FLOPS

suckerpinch
314K views • 7 years ago
GradIEEEnt half decent: The hidden power of imprecise lines55:02

GradIEEEnt half decent: The hidden power of imprecise lines

suckerpinch
391K views • 3 years ago
Fast Inverse Square Root — A Quake III Algorithm20:08

Fast Inverse Square Root — A Quake III Algorithm

Nemean
6M views • 5 years ago
Why do people keep getting this wrong‽12:49

Why do people keep getting this wrong‽

Stand-up Maths
2M views • 6 years ago
Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”1:00:17

Stephan T. Lavavej “Floating-Point <charconv>: Making Your Code 10x Faster With C++17's Final Boss”

CppCon
41K views • 7 years ago
Flaw in the Enigma Code - Numberphile10:58

Flaw in the Enigma Code - Numberphile

Numberphile
5.4M views • 13 years ago
Chip & PIN Fraud Explained - Computerphile8:45

Chip & PIN Fraud Explained - Computerphile

Computerphile
851K views • 11 years ago
Randomness is Random - Numberphile13:31

Randomness is Random - Numberphile

Numberphile
893K views • 7 years ago
How does Computer Memory Work? 💻🛠35:33

How does Computer Memory Work? 💻🛠

Branch Education
5.5M views • 4 years ago
The Golden Ratio (why it is so irrational) - Numberphile15:13

The Golden Ratio (why it is so irrational) - Numberphile

Numberphile
3.9M views • 8 years ago
David Patterson - A New Golden Age for Computer Architecture: History, Challenges and Opportunities1:21:07

David Patterson - A New Golden Age for Computer Architecture: History, Challenges and Opportunities

UBC Computer Science
99K views • 7 years ago
Base 12 - Numberphile9:12

Base 12 - Numberphile

Numberphile
2.3M views • 13 years ago
Elliptic Curve Back Door - Computerphile12:24

Elliptic Curve Back Door - Computerphile

Computerphile
554K views • 8 years ago
Infinity is bigger than you think - Numberphile8:00

Infinity is bigger than you think - Numberphile

Numberphile
7.7M views • 14 years ago
John Hennessy and David Patterson 2017 ACM A.M. Turing Award Lecture1:19:38

John Hennessy and David Patterson 2017 ACM A.M. Turing Award Lecture

Association for Computing Machinery (ACM)
150K views • 8 years ago
Surreal Numbers (writing the first book) - Numberphile14:06

Surreal Numbers (writing the first book) - Numberphile

Numberphile
566K views • 10 years ago