sign
Returns the sign of a number.
0for1for-1for Note that this is different from the built-infloat.signum()which returns1.0for .
Parameters
value : int | float
The value to determine the sign of.
Returns the sign of a number.
0 for 1 for -1 for
Note that this is different from the built-in
float.signum()
which returns 1.0 for .int | floatThe value to determine the sign of.