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
http://forum.espruino.com/conversations/328291/#comment14522349
//Espruino >console.log(new Uint8Array(new Float64Array([0.95, 1-0.05]).buffer)) new Uint8Array([ 103, 102, 102, 102, 102, 102, 238, 63, 102, 102, 102, 102, 102, 102, 238, 63]) // Node.js >console.log(new Uint8Array(new Float64Array([0.95, 1-0.05]).buffer)) new Uint8Array([ 102, 102, 102, 102, 102, 102, 238, 63, 102, 102, 102, 102, 102, 102, 238, 63])
Need to look at whether there's an easy fix for this.
The text was updated successfully, but these errors were encountered:
Note that this is based on 1-0.05 == 0.95 => false in Espruino
1-0.05 == 0.95 => false
But 0.3 == 0.1+0.1+0.1 => false in Node.js and Chrome so this is never going to be a complete fix.
0.3 == 0.1+0.1+0.1 => false
Sorry, something went wrong.
Nobody seems too bothered - floats aren't 100% accurate anyway
No branches or pull requests
http://forum.espruino.com/conversations/328291/#comment14522349
Need to look at whether there's an easy fix for this.
The text was updated successfully, but these errors were encountered: