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

New rule: "NaN" should not be used in comparisons #83

Closed
meziantou opened this issue Aug 11, 2019 · 1 comment
Closed

New rule: "NaN" should not be used in comparisons #83

meziantou opened this issue Aug 11, 2019 · 1 comment

Comments

@meziantou
Copy link
Owner

if (a == double.NaN) // always return false, should be double.IsNaN(a)
@meziantou
Copy link
Owner Author

closed by 13f1862

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