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

Some notes on the Math module #53

Open
aspeddro opened this issue Feb 18, 2023 · 0 comments
Open

Some notes on the Math module #53

aspeddro opened this issue Feb 18, 2023 · 0 comments

Comments

@aspeddro
Copy link
Contributor

Math.Int.maxMany, Math.Int.minMany, Math.maxMany and Math.minMany variadic functions

Math.Int.maxMany([]) not returns an int. It's compile to Math.max() and returns -Infintiy. In JS Math.max([]) returns 0.

let a = Math.Int.maxMany([])
Float.isFinite(a) // false

Math.Int.pow

This function has been deprecated for int. The return type may be not int, example pow(3, ~exp=-3) return a float

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

No branches or pull requests

1 participant