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

pi is hardcoded in unit tests #190

Open
ashwalk33r opened this issue Apr 4, 2020 · 1 comment · May be fixed by #224
Open

pi is hardcoded in unit tests #190

ashwalk33r opened this issue Apr 4, 2020 · 1 comment · May be fixed by #224

Comments

@ashwalk33r
Copy link

ashwalk33r commented Apr 4, 2020

Why pi is hardcoded in https://github.com/alexei/sprintf.js/blob/master/test/test.js#L10 as var pi = 3.141592653589793 where Math.PI exists which returns same number? Why to hardcode it?

@ashwalk33r ashwalk33r changed the title pi is hardcoded in tests pi is hardcoded in unit tests Apr 4, 2020
@tshinnic
Copy link

It is true that Math.PI has been present since ECMA-262, 1st edition, June 1997. Just needs a PR (hmm?)

sakamossan added a commit to sakamossan/sprintf.js that referenced this issue Jul 8, 2023
@sakamossan sakamossan linked a pull request Jul 8, 2023 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants