A float cut by phi

You will learn

How one rule, E = round((N - 1) / phi^2), splits every GoldenFloat width into sign, exponent and mantissa.

A float spends its bits on three fields: one sign bit, an exponent for range and a mantissa for precision. IEEE 754 picks the split by committee for each width. GoldenFloat uses one rule for all of them: of the N - 1 bits after the sign, round((N - 1) / phi^2) go to the exponent and the rest to the mantissa, so the ratio E / M stays near 1 / phi, about 0.618. The family spec lists 17 widths from GF4 to GF1024, and GF16 is the one it marks primary.

Open the interactive lesson →