sign
lq.sign(value)
Returns the sign of a number.
0
for1
for-1
for Note that this is different from the built-infloat.signum()
which returns1.0
for .
Parameters
value : int
| float
The value to determine the sign of.
lq.sign(value)
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
| float
The value to determine the sign of.