copapy.sign#

copapy.sign(x)#

Return 1 for positive numbers and -1 for negative numbers. For an input of 0 the return value is 0.

Overloads:
Parameters:

x (Any) – Input value

Returns:

-1, 0 or 1