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

Add missing Math constants and functions #631

Merged
merged 2 commits into from
Aug 27, 2023

Conversation

farism
Copy link
Contributor

@farism farism commented Aug 26, 2023

Tries to achieve 1:1 parity with the browser Math APIs

@gdotdesign gdotdesign requested a review from Sija August 26, 2023 18:53
@gdotdesign gdotdesign added enhancement New feature or request stdlib Standard library related labels Aug 26, 2023
Comment on lines 3 to 10
const E = `Math.E`
const LN10 = `Math.LN10`
const LN2 = `Math.LN2`
const LOG10E = `Math.LOG10E`
const LOG2E = `Math.LOG2E`
const PI = `Math.PI`
const SQRT12 = `Math.SQRT1_2`
const SQRT2 = `Math.SQRT2`
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be nice if these constants have comments as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added 👍

@gdotdesign gdotdesign added this to the 0.19.0 milestone Aug 26, 2023
@gdotdesign gdotdesign merged commit 0668cac into mint-lang:master Aug 27, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request stdlib Standard library related
Development

Successfully merging this pull request may close these issues.

3 participants