-
Notifications
You must be signed in to change notification settings - Fork 624
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 a warning when taking the negative value of .abs()
on a literal. (eg -1.abs()
)
#7146
Comments
Is |
Right, We can't change the precedence rules because then then things like If anything we could detect this specific case and have a warning. |
That might be an option, I agree. Otherwise I'd say that this isn't a bug. |
.abs()
on a literal. (eg -1.abs()
)
We may improve the documentation for that.
This looks like I can write |
Bug Description
-1deg.abs()
returns-1deg
whereasMath.abs(-1deg)
returns1deg
.I expect
-1deg.abs()
equals1deg
.Reproducible Code (if applicable)
Environment Details
Product Impact
No response
The text was updated successfully, but these errors were encountered: