felipesabinoon Hacker News • Recommends
On “0.30000000000000004”
2.6M subscribers • 66 videos on Hallway
Beginner. No background in the topic needed.
2.5M views12 years ago2 recommendations
Computer scienceSystems programmingMath for programmers
Tom Scott explains how floating point numbers work in computers and why they are unsuitable for handling currency.
Why can't floating point do money? It's a brilliant solution for speed of calculations in the computer, but how and why does moving the decimal point (well, in this case binary or radix point) help and how does it get currency so wrong? 3D Graphics Playlist: youtube.com/playlist?list=PLzH6n4zXuckrPkEUK5iMQrQyvj9Z6WCrm The Trouble with Timezones: youtu.be/-5wpm-gesOY More from Tom Scott: youtube.com/user/enyay and twitter.com/tomscott facebook.com/computerphile twitter.com/computer_phile This video was filmed and edited by Sean Riley. Computerphile is a sister project to Brady Haran's Numberphile. See the full list of Brady's video projects at: bit.ly/bradychannelsWhat people say. Recommended as a simple and accessible explanation of floating point representation and its limitations with currency.
felipesabinoon Hacker News • Recommends
On “0.30000000000000004”
microwavecameraon Hacker News • Recommends
On “Why do programming languages suck at math?”
Eric Leschinskion Stack Overflow • Mentions
On “How do I print a double value without scientific notation using Java?”
u/mikaelhgin r/Kotlin • Mentions
On “Iterating ove float array goes wrong.”
u/Drach88in r/C_Programming • Mentions
On “DIVISION ERROR?? So I just printed n to show y'all that n is 2.0000 but when divided by 0.1 the answer is not 2? Please help”
u/StenSoftin r/C_Programming • Mentions
On “return only till specified number of decimal places”
mercxryon Hacker News • Mentions
On “Why you should probably be using SQLite”
u/gardynain r/C_Programming • Mentions
On “Question about float precision”
u/FelixGaussin r/compsci • Mentions
On “Why do we need to use a negative exponent power of 2 to represent a decimal?”
u/djsteffeyin r/C_Programming • Mentions
On “[n00b] Why is the float failing at a certain point?”