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.
No, that is not what floats are. A logarithmic number system literally just stores the logarithm of a number (and a sign bit) and manipulates it as a logarithm. The significand is 1, always. So multiplication & division are simply addition & subtraction, respectively. But this simplification for multiplication, division, roots, and powers is counterbalanced by more complex addition and subtraction.[1]
klodolph · · focus · HN ↗
Seen it used in a couple places. Logarithmic depth buffer is one. Yamaha DX7 is another.
mtklein · · focus · HN ↗
mdspan · · focus · HN ↗
em3rgent0rdr · · focus · HN ↗
[1] <a href="https://en.wikipedia.org/wiki/Logarithmic_number_system" rel="nofollow">https://en.wikipedia.org/wiki/Logarithmic_number_system
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