Skip to content
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

Should it give an error? #17

Closed
hemanth opened this issue Jun 11, 2012 · 4 comments · Fixed by #18
Closed

Should it give an error? #17

hemanth opened this issue Jun 11, 2012 · 4 comments · Fixed by #18

Comments

@hemanth
Copy link
Contributor

hemanth commented Jun 11, 2012

> Math.sign(-0)
0
@paulmillr
Copy link
Owner

Not sure. Interested what es6 spec says about it.

@hemanth
Copy link
Contributor Author

hemanth commented Jun 11, 2012

-0 is an IEEE754 binary double precision value, just as +0 is. It has negative sign. ECMA-262 covers IEEE754 in 8.5 "The Number Type". ~ Brendan

So it's perfectly fine! 👍

@paulmillr
Copy link
Owner

Mind opening a pull request for it? (check can be done via Object.is())

@hemanth
Copy link
Contributor Author

hemanth commented Jun 11, 2012

My Pleasure! Will be doing it now.

Update 0 : Done.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants