LESSON 6.06 · 6 STAGES · 3 CONTROLS · 3 CHECKSPRO · PREVIEW
Floating-point formats
Watch one number squeeze into six float formats and lose digits on the way.
Pro lesson. Stage 1 is free to watch. Pro opens all 6 stages, 3 controls and 3 checks, in this lesson and every other.
Go Pro · $8.25/moEXPLAINER · 6.06 · FLOAT BAYFP16 · 1 + 5 + 10 = 16 BITS
01
Stage 1 of 6 · Six layouts
Each dtype splits its bits into a sign, exponent bits and a mantissa. FP16 uses 1 + 5 + 10 = 16 bits.
Explain it simply
Each row is one number format, drawn bit by bit. The first bit is the sign. The ochre bits pick a power of two, and the teal bits hold the digits. More ochre bits give more range, and more teal bits give more digits.
Six rows of bits, one per format: FP64, FP32, TF32, BF16, FP16 and FP8. FP16 has 1 sign bit, 5 exponent bits and 10 mantissa bits.
value · mantissa bitsexponent bits · rangestored numbersrounding error · overflowsubnormal · not stored
Toy: 4 values in 6 formats, a 3-logit softmax
MATH · STAGE 1HOVER A SYMBOL OR A SHAPE
A float is a sign, a power of two and a fraction.
PRO LESSON · YOU WATCHED STAGE 1 OF 6
Unlock the full explainer
- 5 more stages and 3 live controls
- 2 mix-up cards and 3 predict-then-reveal checks
- Watch it as a narrated video, in three voices
- Every Pro lesson and capstone · 656 in total
$99 a year, or $15 a month. Cancel any time.