Skip to content

Returns the sign of a number: -1, 0, or 1.

func.sign(<x>)
func.sign(-42)
┌────┐
-1
└────┘
SIGN(<x>)
SELECT SIGN(-42);
┌────┐
-1
└────┘