GF16: the primary format

You will learn

The 16-bit GoldenFloat the family marks primary: 1 + 6 + 9, bias 31, and its special codes.

GF16 has 16 bits: 1 sign, 6 exponent, 9 mantissa, bias 31. Exponent code 63, all ones, is kept for infinity and NaN, as in IEEE 754. The spec gives every special code a name: 0x0000 and 0x8000 for the two zeros, 0x7E00 and 0xFE00 for the two infinities, 0xFE01 for NaN. A mantissa of 9 bits divides by 512.

Open the interactive lesson →