Thoughts about introducing math.signum
#4235
FourteenBrush
started this conversation in
Ideas/Requests
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.
-
There is currently
math.signandmath.sign_bit, which respectively return one or zero or true or false depending on the sign.There isn't really a signum as in
sign := 1 if x > 0 else -1, like how rust does it:Beta Was this translation helpful? Give feedback.
All reactions