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

Math.cbrt(-1) #13

Closed
Yaffle opened this issue Jan 13, 2015 · 4 comments
Closed

Math.cbrt(-1) #13

Yaffle opened this issue Jan 13, 2015 · 4 comments
Labels

Comments

@Yaffle
Copy link

Yaffle commented Jan 13, 2015

Math.cbrt(-x) should be equal to -Math.cbrt(x)

@zloirock
Copy link
Owner

@Yaffle hmm?

console.log(Math.cbrt(-1)) // => -1

@Yaffle
Copy link
Author

Yaffle commented Jan 13, 2015

Ah, excuse me, I copied Math.cbrt manually, and forgot sign(x), seems.

Also, please look at compat-table/compat-table#392

@zloirock
Copy link
Owner

I do not think that this accuracy is needed, especially as it is not defined in the specification.

@Yaffle
Copy link
Author

Yaffle commented Jul 15, 2016

@zloirock I do not think the specification is needed so.

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

No branches or pull requests

2 participants