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

Consider adding ecma262 Math Extensions Stage 1 per TC39 0716 #226

Closed
clavecoder opened this issue Jul 30, 2016 · 4 comments
Closed

Consider adding ecma262 Math Extensions Stage 1 per TC39 0716 #226

clavecoder opened this issue Jul 30, 2016 · 4 comments

Comments

@clavecoder
Copy link
Contributor

The Math Extensions proposal was moved to Stage 1 in the TC39 07 '16 meeting. Consider adding it to core.js

Details

  1. Well-Known Intrinsic Objects
  2. Math.clamp ( x, lower, upper )
  3. Math.scale ( x, inLow, inHigh, outLow, outHigh )
  4. Math.radians ( degrees )
  5. Math.degrees ( radians )
  6. Math.RAD_PER_DEG
  7. Math.DEG_PER_RAD
@zloirock
Copy link
Owner

Makes sense. Feel free to add a PR.

@clavecoder
Copy link
Contributor Author

Working on this one first. Basing off of umulh and epsilon. Testing now.

@clavecoder
Copy link
Contributor Author

clavecoder commented Jul 31, 2016

OK. Here's PR #227. Needs a little work, but tests pass. I'll try to work on #225 once this is free and clear.

@zloirock
Copy link
Owner

zloirock commented Aug 6, 2017

Released in 2.5.0.

@zloirock zloirock closed this as completed Aug 6, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants