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

Add epsilon to Basics #238

Closed
TheSeamau5 opened this Issue May 5, 2015 · 1 comment

Comments

Projects
None yet
2 participants
@TheSeamau5
Contributor

TheSeamau5 commented May 5, 2015

Defining an epsilon value is pretty basic need when dealing with arithmetic, especially to define an approximately equal operation (due to floating point errors).

While this can perfectly live in a library, I think it's worth being in the core library in the Basics module.

In JS, Number.EPSILON is defined as 2.2204460492503130808472633361816E-16, or 2-52.
This is not well supported accross browsers, as such, it's worth defining it as a constant directly.

https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/EPSILON

@evancz

This comment has been minimized.

Show comment
Hide comment
@evancz

evancz Sep 22, 2016

Member

Consolidated all the math related stuff into the #721 meta issue. Follow along there!

Member

evancz commented Sep 22, 2016

Consolidated all the math related stuff into the #721 meta issue. Follow along there!

@evancz evancz closed this Sep 22, 2016

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