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

js: port MAX_SAFE_INTEGER + friends #561

Open
timotheecour opened this issue Jan 30, 2021 · 1 comment
Open

js: port MAX_SAFE_INTEGER + friends #561

timotheecour opened this issue Jan 30, 2021 · 1 comment
Labels

Comments

@timotheecour
Copy link
Owner

timotheecour commented Jan 30, 2021

/cc @juancarlospaco @xflywind

# https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Number/MAX_SAFE_INTEGER
Number.EPSILON
Number.MAX_SAFE_INTEGER
Number.MAX_VALUE
Number.MIN_SAFE_INTEGER
Number.MIN_VALUE
Number.NaN
Number.NEGATIVE_INFINITY
Number.POSITIVE_INFINITY

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

and other procs/constants related to Number

std/jsffi comes to mind but IMO this module is bloated and has a bad designed (everything is a JsObect makes no sense to me, making it hard to use)

so the best would be a new module, maybe std/jsnumbers ? or some broader scope?

example use cases

@juancarlospaco
Copy link
Collaborator

jsnumbers

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