sign

fnT sign(T)(T x)

Returns -1 if x is negative, 1 if positive, or 0 if zero.