3 ms·
Hah, I did almost the same thing recently! Precision and rounding was not that important though so i just went with log2 to get the exponent, normalize and cast
by starmole 13y ago
Hah, I did almost the same thing recently!
Precision and rounding was not that important though so i just went with log2 to get the exponent, normalize and cast to int to get the mantissa.
Then I realized I could do it properly by just using a typed array :)