signum()
Indicates the value’s sign.
Declaration
func signum() -> IntReturn Value
-1 if the value is less than zero, 0 if it is equal to zero, or +1 if it is greater than zero.
Indicates the value’s sign.
func signum() -> Int-1 if the value is less than zero, 0 if it is equal to zero, or +1 if it is greater than zero.