1 years ago 9,495 views
Presented by Bernhard Breytenbach (@BBreyten)
As developers, we end up working with money and fractions sooner or later. Moreover, when we do, we quickly start to realize that fractional values work differently in a computer than we expect. Why does 0.5 + 0.25 === 0.75 return true, but 0.1 + 0.2 === 0.3 returns false. Surely they are the same?
In this talk, we will take a look at numbers through the eyes of a computer to get a better understanding of what's going on behind the scenes.
This talk will equip you to make better decisions when implementing mathematical functions in environments where accuracy is critical. You will better understand when floats are ideal, and when avoiding them will save you a lot of pain.
Having started with web development back in 2005, Bernhard Breytenbach is a self-taught PHP developer/Linux DevOp. He currently works a lot with cryptocurrencies, trying to simplify the process of receiving payments for merchants as a Senior Software Developer at GloBee.com. As someone who is very involved in the South African Dev community, attending and speaking at different conferences and meetups, he also runs the PHP user group in South Africa’s capital, Pretoria, and is one of the organizers of PHP South Africa. He has a heart for young students and enjoys sharing his knowledge with the community. As a firm believer in mentorship, he currently mentors a number of students from different backgrounds, through which he tries to inspire the next generation.