Function

signum()

Returns -1 if self is negative, 1 if it is positive, or 0 otherwise.