GF20 and GF24
You will learn
The 20- and 24-bit GoldenFloats, 1 + 7 + 12 and 1 + 9 + 14, and the tolerance each spec allows.
gf20.t27 holds 1 sign, 7 exponent and 12 mantissa bits with bias 63; gf24.t27 holds 1 sign, 9 exponent and 14 mantissa bits with bias 255. The lesson opens gf24.t27, whose PHI_DISTANCE is 0.0248, and its test allows anything under 0.03; MEMORY_RATIO_VS_FP32 is 0.75. GF20 writes its distance as 0.03463, under a test bound of 0.04, while 7 / 12 sits 0.03470 from 1 / phi: the stored constant and the arithmetic differ in the fourth decimal. Between them, both widths keep the ratio within 0.035 of 1 / phi.