We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
For example, it'll trigger on the following program
x = 2.7139914879495697
I think the rule should avoid erroring if there are additional decimal digits that do not match, so:
bad1 = 2.7182 bad2 = 2.7183 good1 = 2.71824 good2 = 2.71820001
The text was updated successfully, but these errors were encountered:
Trying to figure out what the best approach is here. I may need to look at what other tools do. E.g., what if the user rounds at some decimal point?
Sorry, something went wrong.
refurb
math-constant
FURB152
Thanks! Issue description mentions how I think rounding should be done; I opened a PR for this at #9290
[refurb] Avoid false positives for math-constant (FURB152) (#9290)
5018701
Fixes #9281
Successfully merging a pull request may close this issue.
For example, it'll trigger on the following program
I think the rule should avoid erroring if there are additional decimal digits that do not match, so:
The text was updated successfully, but these errors were encountered: