Float Negation -.x #5121
Mehgugs
started this conversation in
Ideas & suggestions
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently we don't have a "dot operator" for negating a float. This means to negate a float we have to use
0.0 -. xor a similar expression.This confused me when doing some float math for a second, and I also think it would make code a little bit more readable.
I'm happy to have a go at a PR for this by following how the int negation is implemented as a guide.
Beta Was this translation helpful? Give feedback.
All reactions