Next: sin, Previous: real, Up: Functions [Contents][Index]
The ‘sgn(x)‘ function returns 1 if its argument is positive, -1 if its argument is negative, and 0 if its argument is 0. If the argument is a complex value, the imaginary component is ignored.