Skip to content
0:00 / 0:00

#ieee754#floatingpoint#javascript

Why 0.1 + 0.2 === 0.30000000000000004: Implementing IEEE 754 in JS

Low Byte Productions

87K subscribers • 18 videos on Hallway

YouTube

Intermediate. Assumes working knowledge.

72K views7 years ago2 recommendations

Computer scienceProgramming languagesJavaScriptMath for programmers

How floating point numbers work in computers and how to implement the IEEE 754 standard from scratch in JavaScript.

Floating point math is tricky. In this video, we'll learn how these numbers work in computers, and build a software implementation from scratch in JavaScript. =[ 🔗 Links 🔗 ]= - ⭐️ Patreon: patreon.com/lowleveljavascript - 💌 Updates to your inbox: tinyletter.com/lowleveljavascript - Floating Point Arithmetic: en.wikipedia.org/wiki/Floating-point_arithmetic - 16 Bit Floats: en.wikipedia.org/wiki/Half-precision_floating-point_format - IEEE 754 Spec: ieeexplore.ieee.org/document/30711 - Fabien Sanglard's awesome blog on the subject: fabiensanglard.net/floating_point_visually_explained/ - Denormalised Numbers: en.wikipedia.org/wiki/Denormal_number - Github Repo: github.com/LowLevelJavaScript/Floating-Point-Implemented-In-…

Why it's here

2 people recommend this

What people say. Recommended as a clear, hands-on explanation of floating point arithmetic and why decimal precision issues occur in JavaScript.

u/FrancisStokesin r/node • Recommends

Why 0.1 + 0.2 == 0.30000000000000004: Implementing IEEE-754 From Scratch in JS

u/fagnerbrackin r/Frontend • Recommends

Why 0.1 + 0.2 === 0.30000000000000004: Implementing IEEE 754 in JS