8 exponent bits, no sign, no mantissa: every value is an exact power of two
E8M0 is all exponent. There is no sign bit and no mantissa field, so the entire 8-bit encoding is a biased exponent and every representable value is exactly 2k.
E8M0 is the shared scale type of the OCP Microscaling (MX) Specification v1.0. An MX block is 32 elements of a narrow type (FP8 E4M3, FP8 E5M2, FP6, FP4 or MXINT8) plus one E8M0 scale that multiplies all of them. The narrow element type supplies precision; the shared scale supplies dynamic range.
Restricting the scale to an exact power of two is deliberate. Multiplying by 2k is an exponent adjustment, not a multiply, so applying a block scale costs nothing in hardware and introduces no rounding error of its own.
11111111, which is NaN.
Exponent fields 0 through 254 map to 2-127 through 2127, covering 255 binades with no gaps and no duplicates. That is the full supported exponent range MX Table 7 specifies, −127 to 127.
11111111 (exponent field 255).Click any bit to flip it, drag the slider, or enter a decimal or hex value. The graph shows how values are distributed across the encoding space.
| Property | Value |
|---|---|
| Max Positive (Normal) | 1.701411835e+38 |
| Min Positive (Normal) | 5.877471754e-39 |
| Subnormals | N/A (no subnormal encodings) |
| Zero | N/A (no zero encoding) |
| Machine Epsilon (at 1.0) | 1 |
| Approx. Decimal Digits | ~0.0 |
| Exponent Bias | 127 |
| Exponent Range | 2^-127 to 2^127 |
| Total Bit Patterns | 256 |
| Supports Infinity | No |
| Supports NaN | Yes |
| Value | Bit Pattern | Decimal |
|---|---|---|
| Min Normal | 00000000 | 5.877471754e-39 |
| Max Normal | 11111110 | 1.701411835e+38 |
| NaN | 11111111 | NaN |
| Property | E8M0 | FP8 E4M3 | FP8 E5M2 | FP4 E2M1 |
|---|---|---|---|---|
| Total Bits | 8 | 8 | 8 | 4 |
| Sign Bits | 0 | 1 | 1 | 1 |
| Exponent Bits | 8 | 4 | 5 | 2 |
| Mantissa Bits | 0 | 3 | 2 | 1 |
| Bias | 127 | 7 | 15 | 1 |
| Max Value | 1.701411835e+38 | 448 | 57344 | 6 |
| Min Normal | 5.877471754e-39 | 0.015625 | 0.00006103515625 | 1 |
| Epsilon | 1 | 0.125 | 0.25 | 0.5 |
| ~Decimal Digits | ~0.0 | ~0.9 | ~0.6 | ~0.3 |
| Has Infinity | No | No | Yes | No |
| Has NaN | Yes | Yes | Yes | No |
| Has Subnormals | No | Yes | Yes | Yes |
float8_e8m0fnu as a NumPy dtype extension, and PyTorch exposes torch.float8_e8m0fnu for MX scaling.