Room 2

15:45 - 16:45 (UTC+02)

Talk (60 min)

An Introduction To Floating Point Math

Many programmers have to deal with floating-point numbers, but often they have only a very superficial understanding of how they work and what it means for the code they write. This issue is further exacerbated by a lot of advice on the internet. We will go over the very basics of floating-point numbers (as defined by IEEE 754), such as their representation, their correspondence to the scientific notation, what are their limitations, what errors we can expect when using them to do math and also how to compare two numbers. We will finish by looking at cases where our newfound understanding of floating-point math breaks down, such as using different C++ platforms, different contexts, and other fun things.


Martin Hořeňovský

Martin Hořeňovský is currently a researcher at Pex. He has taught modern C++ at Czech Technical University in Prague, and maintains Catch2, a popular C++ unit testing framework, in the little free time he has left.