filmov
tv
Why Binary Systems HATE Division
Показать описание
Why computers can't compute 0.1*0.1 or 0.1+0.2 properly. 0.1*0.1 is actually unsolvable by computers because it is impossible for them to define 0.1. Computers will define 0.1 as slightly more or slightly less the the actual 0.1 value. So if you want to print 0.1*0.1, this will result 0.010000000000000002 because this is an approximation. So maybe computers are not really good at math after all...
This is the more complex answer: "Not all floating point numbers are exactly representable on a finite machine. Neither 0.1 nor 0.2 are exactly representable in binary floating point. And nor is 0.3. A number is exactly representable if it is of the form a/b where a and b are an integers and b is a power of 2. Obviously, the data type needs to have a large enough significant to store the number also." - David Heffernan. Alternative title: Computers can't solve this, heres why. Computers sucks at maths.
CREDIT
This video was inspired by Fireship's Youtube Short. @Fireship
LINKS
COURSES
MISSION
Our mission at Flutter Mapp (Flutter Mobile App) is to help purpose driven Flutter developers go full-time doing what they love and making an impact through coding. We achieve this with useful Flutter tips and straight to the point Flutter videos.
RECOMMENDED
DISCORD
SOCIAL MEDIA:
CONTACT
#FlutterMapp
#python
#java
This is the more complex answer: "Not all floating point numbers are exactly representable on a finite machine. Neither 0.1 nor 0.2 are exactly representable in binary floating point. And nor is 0.3. A number is exactly representable if it is of the form a/b where a and b are an integers and b is a power of 2. Obviously, the data type needs to have a large enough significant to store the number also." - David Heffernan. Alternative title: Computers can't solve this, heres why. Computers sucks at maths.
CREDIT
This video was inspired by Fireship's Youtube Short. @Fireship
LINKS
COURSES
MISSION
Our mission at Flutter Mapp (Flutter Mobile App) is to help purpose driven Flutter developers go full-time doing what they love and making an impact through coding. We achieve this with useful Flutter tips and straight to the point Flutter videos.
RECOMMENDED
DISCORD
SOCIAL MEDIA:
CONTACT
#FlutterMapp
#python
#java
Комментарии