GF4: four bits

You will learn

The smallest GoldenFloat: one sign bit, one exponent bit, two mantissa bits, bias 0.

GF4 has 4 bits: 1 sign, 1 exponent, 2 mantissa, and its exponent bias is 0. With one exponent bit there are only two scales, 1 and 2, so its 16 codes are coarse. The rule gives E = round(3 / phi^2) = 1, and the ratio E / M is 0.5, a distance of 0.118 from 1 / phi. The AI numbers course opens the same spec for another reason; here it is the lowest rung of the family.

Open the interactive lesson →