sign

fnT sign(T)(T x) @safe nothrow @nogc

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