We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to encode as 32 bit floating points instead of 64?
I'm sending a lot of floating number over a socket and this seems quiet expensive.
1.1 = [203, 63, 241, 153, 153, 153, 153, 153, 154]
The text was updated successfully, but these errors were encountered:
This is actually correct behaviour because 1.1 is a double-precision float value, which is 64 bits. You can see in the Node REPL:
> Math.fround(1.1) 1.100000023841858
Sorry, something went wrong.
I'd also like to be able to force 32-bit float encoding. Is this possible?
No branches or pull requests
Is it possible to encode as 32 bit floating points instead of 64?
I'm sending a lot of floating number over a socket and this seems quiet expensive.
1.1 = [203, 63, 241, 153, 153, 153, 153, 153, 154]
The text was updated successfully, but these errors were encountered: