Worth mentioning is storing the logarithm of the number.Seen it used in a couple places. Logarithmic depth buffer is one. Yamaha DX7 is another.
That's kind of exactly what floats are. You store the log2 of the number, a bit for its sign, and in what remaining bits you have left some fixed-point scaling between adjacent powers.
Floats are actually rational numbers with denominators of power of 2.<a href="https://en.wikipedia.org/wiki/Dyadic_rational#In_computing" rel="nofollow">https://en.wikipedia.org/wiki/Dyadic_rational#In_computing
klodolph · · focus · HN ↗
Seen it used in a couple places. Logarithmic depth buffer is one. Yamaha DX7 is another.
mtklein · · focus · HN ↗
pkaye · · focus · HN ↗
<a href="https://en.wikipedia.org/wiki/Dyadic_rational#In_computing" rel="nofollow">https://en.wikipedia.org/wiki/Dyadic_rational#In_computing