Next: , Previous: , Up: Internal Routines   [Contents][Index]


15.5.546 sgn

sgn(data)

Returns for each element of data the sign of the element: +1 if the element is positive, -1 if the element is negative, and 0 if the element is equal to zero.