sign

ABSTRACT

Determines the sign of the input number

PARAMETERS
xthe input value
RETURN

1 if the input number is positive, 0 if the input is zero, and -1 otherwise

DECLARATION
func sign(x)