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 tests for -0 and high precision values #27

Merged
merged 2 commits into from
Aug 5, 2023

Conversation

yvele
Copy link
Contributor

@yvele yvele commented Aug 4, 2023

Is it on purpose to round -6.578040334659363e-10 to -0 instead of 0? 🤔
Shouldn't be better to never round to -0 but 0 instead 🤔

Related to #28

@yvele
Copy link
Contributor Author

yvele commented Aug 4, 2023

By the way I think the repo needs to be updated I've got a CI error:

TypeError: Cannot read properties of undefined (reading 'getAllComments')
Occurred while linting /home/runner/work/round-to/round-to/index.js:1
Rule: "unicorn/expiring-todo-comments"

The tests are passing by only running ava alone

@yvele yvele changed the title Add tests for high precision values Add tests for -0 and high precision values Aug 4, 2023
@sindresorhus sindresorhus merged commit 251a31f into sindresorhus:main Aug 5, 2023
1 check failed
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 this pull request may close these issues.

2 participants