Sign-func
The sign(x) function returns the sign of real number x. It returns 1 if x > 0 and returns -1 if x < 0; For x = 0, zero is returned.
int sign(double x)
x
Returns the sign of real number x.
sign(5) = ; //should return 1 sign(-5) = ; //should return -1