You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Dec 14, 2021. It is now read-only.
Currently, I write Typed Arrays polyfill for core-js, but I'm not an expert in IEEE754, so, at first, I tried to explore available functions for IEEE754 conversions. I tried your functions, but packing 32-bit float here does not match the native. For example:
Ugh, thanks. This looks like one of those "how did it ever work?" cases, but I also haven't revisited all of the code. Can you give this change a whirl with your test cases?
if (f / pow(2, fbits) >= 2) {
e = e + 1;
- f = 1;+ f = pow(2, fbits);
}
Currently, I write Typed Arrays polyfill for
core-js
, but I'm not an expert in IEEE754, so, at first, I tried to explore available functions for IEEE754 conversions. I tried your functions, but packing 32-bit float here does not match the native. For example:Conversions from this library works fine, but writing my test case still in progress.
The text was updated successfully, but these errors were encountered: