-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
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
Negative zero is not preserved #289
Comments
miloyip
added a commit
that referenced
this issue
Apr 10, 2015
miloyip
added a commit
that referenced
this issue
Apr 10, 2015
Fix #289 negative zero roundtrip (double only)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Given a negative zero as input, the negative sign is silently truncated. It should be preserved.
This also happens to integers, but I'm not sure how that should be handled. The javascript spec is quite clear that negative and positive zero should be distinguished, but most programming languages does not differentiate between -(int)0 and +(int)0.
The text was updated successfully, but these errors were encountered: