Microfloats

Documentation for Microfloats.

Microfloats.Float8_E3M4Type
Float8_E3M4

8-bit Microfloat with 1 sign bit, 3 exponent bits, and 4 mantissa bits. Follows the pattern of the IEEE 754 standard.

source
Microfloats.MicrofloatType
Microfloat(S, E, M, V=IEEE)

Create a new Microfloat type with S sign bits, E exponent bits, and M mantissa bits.

This "type constructor" ensures that the resulting type is legal.

The V argument can be set to :MX to create a Microscaling Format (MX) type.

source