Fundamentals

Introduction to the dark arts of floating point numbers

FeM Channel
Antonius Frie
This is a talk about floating point numbers, specifically the sort named IEEE-754, aka "why are javascript numbers so weird", aka "nooo you can't compare floats for equality!" (Spoiler: sometimes you can.) This is a talk about why.
Floating point numbers, which are the things that most programming languages call something like "float", while Javascript just says "number", are famously weird and confusing: ``` > big_number = 1e16 10000000000000000 > 25 + big_number - big_number 24.0 > big_number == big_number + 1 true ``` In this talk, I'll show you some of my favorite weird floating point phenomena, and then I'll try to explain why they happen. If you are a bit scared of floating point, like I used to, and you're never quite sure which formulas might turn on you and summon the eldritch abomination named NaN, then maybe this talk can help you build an ability to understand (and perhaps control) these phenomena. This will obviously be a very numbers-heavy talk, but I'm going to try to make it as accessible as I can. Knowledge of things like binary numbers or the so-called "scientific number notation" is explicitly not required.

Additional information

Live Stream https://streaming.media.ccc.de/rc3/fem
Type Lightning Talk
Language English

More sessions

12/27/21
R3S local fun
heyhej
r3s - Monheim/Rhein
Unser Opening auf der R3S - Remote Rhein Ruhr Stage
12/27/21
Chaosstudio Hamburg
Chaosstudio Hamburg
Chaosstudio Hamburg
Herzlich Willkommen im Chaosstudio Hamburg
12/27/21
r3s - RemoteRheinRuhr Talk
Joseph P. De Veaugh-Geiss
r3s - Monheim/Rhein
The Blauer Engel 4 FOSS (BE4FOSS) project from KDE e.V. seeks to collect, summarize, and spread information related to eco-certification and resource efficiency as it relates to FOSS development. In this talk I will focus primarily on the energy consumption of software, which is also the focus of the Free & Open Source Software Energy Efficiency Project, or FEEP for short. I will walk the audience through the 3 steps for obtaining *Blauer Engel* certification: (1) *Measure*, (2) *Analyze*, (3) ...
12/27/21
Infrastruktur
margau
FeM Channel
Legacy-IP Adressen werden rar und teuer, gerade für Low Budget Netze. IPv4+ scheint auch eher keine große Verbreitung zu finden. Gleichzeitig wird IPv6 only mit nur wenigen Schnittstellen zur Legacy IP-Welt immer interessanter, auch und besonders für Hobby-Infrastrukturen. In diesem Talk stelle ich mein IPv6-focused "research network" vor, und zeige euch, wie auch ihr Legacy IP schrittweise abschaffen könnt!
12/27/21
R3S local fun
Erklärhaj
r3s - Monheim/Rhein
Erklärhaj setzt Kristalle an, die im Verlauf der Veranstaltung wachsen.
12/27/21
R3S local fun
Erklärhaj
r3s - Monheim/Rhein
Erklärhaj erklärt tolle Experimente live auf der Bühne!
12/27/21
r3s - RemoteRheinRuhr Talk
Roland Meertens
r3s - Monheim/Rhein
Some websites offer a spinning wheel where you, in return for your e-mail address, can win prices and discounts and products. I dove into the code which powers this 'game', and discovered that many prices can't be won, even when altering the probabilities. In this talk I will discuss what I discovered, what I tried, and what the results were.