sign
ABSTRACT
Determines the sign of the input number
PARAMETERS
x | the input value |
RETURN
1 if the input number is positive, 0 if the input is zero, and -1 otherwise
DECLARATION
func sign(x)
Determines the sign of the input number
x | the input value |
1 if the input number is positive, 0 if the input is zero, and -1 otherwise
func sign(x)